Index: chrome/tools/profiles/generate_profile.cc |
=================================================================== |
--- chrome/tools/profiles/generate_profile.cc (revision 137075) |
+++ chrome/tools/profiles/generate_profile.cc (working copy) |
@@ -181,9 +181,9 @@ |
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); |
} |