Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Unified Diff: chrome/browser/tab_contents/thumbnail_generator.cc

Issue 10332163: Revert 137075 - Get rid of Image::Image(SkBitmap*) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/thumbnail_generator.cc
===================================================================
--- chrome/browser/tab_contents/thumbnail_generator.cc (revision 137075)
+++ chrome/browser/tab_contents/thumbnail_generator.cc (working copy)
@@ -471,7 +471,7 @@
clip_result == ThumbnailGenerator::kNotClipped);
score.load_completed = (!load_interrupted_ && !web_contents->IsLoading());
- gfx::Image image(thumbnail);
+ gfx::Image image(new SkBitmap(thumbnail));
const GURL& url = web_contents->GetURL();
top_sites->SetPageThumbnail(url, &image, score);
VLOG(1) << "Thumbnail taken for " << url << ": " << score.ToString();

Powered by Google App Engine
This is Rietveld 408576698