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

Unified Diff: chrome/browser/extensions/extension_sync_service.cc

Issue 1066623008: Sync bookmark app icon urls and sizes, and download icons for new apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated sync value conversions Created 5 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 | « chrome/browser/extensions/convert_web_app.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_sync_service.cc
diff --git a/chrome/browser/extensions/extension_sync_service.cc b/chrome/browser/extensions/extension_sync_service.cc
index 56f499040bc44a14a44ce5dee601f155153fe70c..9a8fddb81453f890135b095a10e945d8cfcadda9 100644
--- a/chrome/browser/extensions/extension_sync_service.cc
+++ b/chrome/browser/extensions/extension_sync_service.cc
@@ -418,6 +418,13 @@ void ExtensionSyncService::ProcessBookmarkAppSyncData(
app_sync_data.bookmark_app_icon_color(),
&web_app_info.generated_icon_color);
}
+ for (const auto& icon : app_sync_data.linked_icons()) {
+ WebApplicationInfo::IconInfo icon_info;
+ icon_info.url = icon.url;
+ icon_info.width = icon.size;
+ icon_info.height = icon.size;
+ web_app_info.icons.push_back(icon_info);
+ }
// If the bookmark app already exists, keep the old icons.
if (!extension) {
« no previous file with comments | « chrome/browser/extensions/convert_web_app.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698