diff options
author | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-15 03:35:56 +0000 |
---|---|---|
committer | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-15 03:35:56 +0000 |
commit | 09b21196f2668fb0dc2ebc630add31ac4c3ea956 (patch) | |
tree | 15a8c854bde4e516c5f02f0556dcf6fa67bbc7b8 /chrome/tools/profiles | |
parent | 7bd7f0f2255048cc45e1297e499f19220d5d8745 (diff) | |
download | chromium_src-09b21196f2668fb0dc2ebc630add31ac4c3ea956.zip chromium_src-09b21196f2668fb0dc2ebc630add31ac4c3ea956.tar.gz chromium_src-09b21196f2668fb0dc2ebc630add31ac4c3ea956.tar.bz2 |
Revert 137068 - Revert 136812 - Get rid of Image::Image(SkBitmap*)
Bug=124566
Test=Compiles on CrOS,Mac
Review URL: https://chromiumcodereview.appspot.com/10378009
TBR=pkotwicz@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=136813
Review URL: https://chromiumcodereview.appspot.com/10383153
TBR=pkotwicz@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10382166
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137072 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 c310879..940b27d 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) { - const SkBitmap& bitmap = (RandomInt(0, 2) == 0) ? *google_bitmap : - *weewar_bitmap; - gfx::Image image(bitmap); + SkBitmap* bitmap = (RandomInt(0, 2) == 0) ? google_bitmap.get() : + weewar_bitmap.get(); + gfx::Image image(new SkBitmap(*bitmap)); top_sites->SetPageThumbnail(url, &image, score); } |