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

Unified Diff: chrome/browser/android/ntp/most_visited_sites.cc

Issue 1879443002: JPEG decoding: replace ownership comments with std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fixes Created 4 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
« no previous file with comments | « no previous file | components/suggestions/image_encoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/ntp/most_visited_sites.cc
diff --git a/chrome/browser/android/ntp/most_visited_sites.cc b/chrome/browser/android/ntp/most_visited_sites.cc
index e5305e05cdc3d2362e9a12d3148e549687babaaf..25fb37c92abc7a1f3bf322cc7b36c477ddb626c9 100644
--- a/chrome/browser/android/ntp/most_visited_sites.cc
+++ b/chrome/browser/android/ntp/most_visited_sites.cc
@@ -93,7 +93,7 @@ std::unique_ptr<SkBitmap> MaybeFetchLocalThumbnail(
scoped_refptr<base::RefCountedMemory> image;
std::unique_ptr<SkBitmap> bitmap;
if (top_sites && top_sites->GetPageThumbnail(url, false, &image))
- bitmap.reset(gfx::JPEGCodec::Decode(image->front(), image->size()));
+ bitmap = gfx::JPEGCodec::Decode(image->front(), image->size());
return bitmap;
}
« no previous file with comments | « no previous file | components/suggestions/image_encoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698