summaryrefslogtreecommitdiffstats
path: root/chrome/tools
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-15 03:28:29 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-15 03:28:29 +0000
commit12c7da12c76dfdd58e9a5fc2ed77b319dfd2c96d (patch)
treec8b03dacda19d343c7dfc33ad72e4c273f808462 /chrome/tools
parente7a8cbd4d4d389e666d5d3c372bb5d09a63b829b (diff)
downloadchromium_src-12c7da12c76dfdd58e9a5fc2ed77b319dfd2c96d.zip
chromium_src-12c7da12c76dfdd58e9a5fc2ed77b319dfd2c96d.tar.gz
chromium_src-12c7da12c76dfdd58e9a5fc2ed77b319dfd2c96d.tar.bz2
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 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137068 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools')
-rw-r--r--chrome/tools/profiles/generate_profile.cc6
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);
}