summaryrefslogtreecommitdiffstats
path: root/chrome/tools/profiles
diff options
context:
space:
mode:
authorpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-15 15:42:59 +0000
committerpkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-15 15:42:59 +0000
commit93079e0c4d33bcbfa3e2c214aa3069827b1439be (patch)
treebb5dc3df683402925645a66fd5595c63c7a61653 /chrome/tools/profiles
parentd613857976ff0b38c09c2e1417815eb1ac113616 (diff)
downloadchromium_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.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);
}