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

Unified Diff: chrome/browser/history/history_tab_helper.cc

Issue 10378009: Get rid of Image::Image(SkBitmap*) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/history/history_tab_helper.cc
diff --git a/chrome/browser/history/history_tab_helper.cc b/chrome/browser/history/history_tab_helper.cc
index 2da50d04e16f2c5297abafedd7744fbd4b0a130b..a9eb13c27208f30530548b79a4b152cf75bf9670 100644
--- a/chrome/browser/history/history_tab_helper.cc
+++ b/chrome/browser/history/history_tab_helper.cc
@@ -158,7 +158,7 @@ void HistoryTabHelper::OnThumbnail(const GURL& url,
// Tell History about this thumbnail.
history::TopSites* ts = profile->GetTopSites();
if (ts) {
- gfx::Image thumbnail(new SkBitmap(bitmap));
+ gfx::Image thumbnail(bitmap);
ts->SetPageThumbnail(url, &thumbnail, score);
}
}

Powered by Google App Engine
This is Rietveld 408576698