diff options
author | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-15 15:42:59 +0000 |
---|---|---|
committer | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-15 15:42:59 +0000 |
commit | 93079e0c4d33bcbfa3e2c214aa3069827b1439be (patch) | |
tree | bb5dc3df683402925645a66fd5595c63c7a61653 /chrome/tools/profiles | |
parent | d613857976ff0b38c09c2e1417815eb1ac113616 (diff) | |
download | chromium_src-93079e0c4d33bcbfa3e2c214aa3069827b1439be.zip chromium_src-93079e0c4d33bcbfa3e2c214aa3069827b1439be.tar.gz chromium_src-93079e0c4d33bcbfa3e2c214aa3069827b1439be.tar.bz2 |
Get rid of Image::Image(SkBitmap*)
Bug=124566
Test=Compiles on CrOS,Mac
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=137075
Review URL: https://chromiumcodereview.appspot.com/10378009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137140 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools/profiles')
-rw-r--r-- | chrome/tools/profiles/generate_profile.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/tools/profiles/generate_profile.cc b/chrome/tools/profiles/generate_profile.cc index 940b27d..c310879 100644 --- a/chrome/tools/profiles/generate_profile.cc +++ b/chrome/tools/profiles/generate_profile.cc @@ -181,9 +181,9 @@ void InsertURLBatch(Profile* profile, if (types & FULL_TEXT) history_service->SetPageContents(url, ConstructRandomPage()); if (types & TOP_SITES && top_sites) { - SkBitmap* bitmap = (RandomInt(0, 2) == 0) ? google_bitmap.get() : - weewar_bitmap.get(); - gfx::Image image(new SkBitmap(*bitmap)); + const SkBitmap& bitmap = (RandomInt(0, 2) == 0) ? *google_bitmap : + *weewar_bitmap; + gfx::Image image(bitmap); top_sites->SetPageThumbnail(url, &image, score); } |