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

Unified Diff: chrome/browser/sync/protocol/proto_value_conversions.cc

Issue 8399022: Add a couple of notifications related settings to app/extensions sync: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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/sync/protocol/proto_value_conversions.cc
===================================================================
--- chrome/browser/sync/protocol/proto_value_conversions.cc (revision 107300)
+++ chrome/browser/sync/protocol/proto_value_conversions.cc (working copy)
@@ -102,6 +102,14 @@
return value;
}
+DictionaryValue* AppSettingsToValue(
+ const sync_pb::AppNotificationSettings& proto) {
+ DictionaryValue* value = new DictionaryValue();
+ SET_BOOL(initial_setup_done);
+ SET_BOOL(disabled);
+ return value;
+}
+
DictionaryValue* SessionHeaderToValue(
const sync_pb::SessionHeader& proto) {
DictionaryValue* value = new DictionaryValue();
@@ -182,6 +190,7 @@
const sync_pb::AppSpecifics& proto) {
DictionaryValue* value = new DictionaryValue();
SET(extension, ExtensionSpecificsToValue);
+ SET(notification_settings, AppSettingsToValue);
return value;
}

Powered by Google App Engine
This is Rietveld 408576698