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

Unified Diff: components/enhanced_bookmarks/image_store.cc

Issue 875463003: ★ Record the image dominant color in the image database. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN Created 5 years, 11 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: components/enhanced_bookmarks/image_store.cc
diff --git a/components/enhanced_bookmarks/image_store.cc b/components/enhanced_bookmarks/image_store.cc
index a7e32e20718c35afd06ab4267771abb502e280a5..a3705781701be60cb7d23356a0615f16100d8155 100644
--- a/components/enhanced_bookmarks/image_store.cc
+++ b/components/enhanced_bookmarks/image_store.cc
@@ -18,7 +18,7 @@ void ImageStore::ChangeImageURL(const GURL& from, const GURL& to) {
if (!HasKey(from))
return;
- std::pair<gfx::Image, GURL> image_info = Get(from);
+ const enhanced_bookmarks::ImageRecord& record = Get(from);
Erase(from);
- Insert(to, image_info.second, image_info.first);
+ Insert(to, record);
}
« no previous file with comments | « components/enhanced_bookmarks/image_store.h ('k') | components/enhanced_bookmarks/image_store_ios_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698