Index: chrome/tools/profiles/generate_profile.cc |
diff --git a/chrome/tools/profiles/generate_profile.cc b/chrome/tools/profiles/generate_profile.cc |
index 940b27dac8c85d2ba9f7ece79e18d30345445153..c310879f0f3a89058b390fc19ca18382d009352c 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); |
} |