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

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

Issue 10378009: Get rid of Image::Image(SkBitmap*) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: k 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
diff --git a/chrome/browser/tab_contents/thumbnail_generator.cc b/chrome/browser/tab_contents/thumbnail_generator.cc
index c8678d11e90273128ce4494e7ef476af29abcae0..1834ae748f43b2c278159a99e2bbaa658389e92c 100644
--- a/chrome/browser/tab_contents/thumbnail_generator.cc
+++ b/chrome/browser/tab_contents/thumbnail_generator.cc
@@ -471,7 +471,7 @@ void ThumbnailGenerator::UpdateThumbnail(
clip_result == ThumbnailGenerator::kNotClipped);
score.load_completed = (!load_interrupted_ && !web_contents->IsLoading());
- gfx::Image image(new SkBitmap(thumbnail));
+ gfx::Image image(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