summaryrefslogtreecommitdiffstats
path: root/chrome/tools
diff options
context:
space:
mode:
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);
}