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

Unified Diff: chrome/browser/extensions/app_sync_data.h

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 | « no previous file | chrome/browser/extensions/app_sync_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/app_sync_data.h
diff --git a/chrome/browser/extensions/app_sync_data.h b/chrome/browser/extensions/app_sync_data.h
index b1ee77e7b12f0f25da63b6a36b6ccc8b37a81091..bbb8123e73b5e075154966beaf80f7d08c74cc9f 100644
--- a/chrome/browser/extensions/app_sync_data.h
+++ b/chrome/browser/extensions/app_sync_data.h
@@ -28,6 +28,14 @@ class ExtensionSyncData;
// A class that encapsulates the synced properties of an Application.
class AppSyncData {
public:
+ struct LinkedAppIconInfo {
+ LinkedAppIconInfo();
+ ~LinkedAppIconInfo();
+
+ GURL url;
+ int size;
+ };
+
AppSyncData();
AppSyncData(const Extension& extension,
bool enabled,
@@ -82,6 +90,10 @@ class AppSyncData {
return bookmark_app_icon_color_;
}
+ const std::vector<LinkedAppIconInfo>& linked_icons() const {
+ return linked_icons_;
+ }
+
private:
// Convert an AppSyncData back out to a sync structure.
void PopulateAppSpecifics(sync_pb::AppSpecifics* specifics) const;
@@ -98,6 +110,7 @@ class AppSyncData {
std::string bookmark_app_url_;
std::string bookmark_app_description_;
std::string bookmark_app_icon_color_;
+ std::vector<LinkedAppIconInfo> linked_icons_;
};
} // namespace extensions
« no previous file with comments | « no previous file | chrome/browser/extensions/app_sync_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698