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

Unified Diff: sync/protocol/proto_value_conversions.cc

Issue 2092893002: arc: Create sync protos for Arc package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits addressed. Created 4 years, 6 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 | « sync/protocol/proto_value_conversions.h ('k') | sync/protocol/proto_value_conversions_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/protocol/proto_value_conversions.cc
diff --git a/sync/protocol/proto_value_conversions.cc b/sync/protocol/proto_value_conversions.cc
index 043ac6393392ba8e15628d4719ab7213a642ec0a..fc6192a7b1c36a63f5ce3fc9e5d2feaae81af80b 100644
--- a/sync/protocol/proto_value_conversions.cc
+++ b/sync/protocol/proto_value_conversions.cc
@@ -23,6 +23,7 @@
#include "sync/protocol/app_notification_specifics.pb.h"
#include "sync/protocol/app_setting_specifics.pb.h"
#include "sync/protocol/app_specifics.pb.h"
+#include "sync/protocol/arc_package_specifics.pb.h"
#include "sync/protocol/autofill_specifics.pb.h"
#include "sync/protocol/bookmark_specifics.pb.h"
#include "sync/protocol/dictionary_specifics.pb.h"
@@ -272,6 +273,17 @@ std::unique_ptr<base::DictionaryValue> AppListSpecificsToValue(
return value;
}
+std::unique_ptr<base::DictionaryValue> ArcPackageSpecificsToValue(
+ const sync_pb::ArcPackageSpecifics& proto) {
+ std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
+ SET_STR(package_name);
+ SET_INT32(package_version);
+ SET_INT64(last_backup_android_id);
+ SET_INT64(last_backup_time);
+
+ return value;
+}
+
std::unique_ptr<base::DictionaryValue> AppNotificationToValue(
const sync_pb::AppNotification& proto) {
std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
@@ -568,6 +580,7 @@ std::unique_ptr<base::DictionaryValue> NigoriSpecificsToValue(
SET_BOOL(encrypt_dictionary);
SET_BOOL(encrypt_articles);
SET_BOOL(encrypt_app_list);
+ SET_BOOL(encrypt_arc_package);
SET_BOOL(encrypt_everything);
SET_BOOL(server_only_was_missing_keystore_migration_time);
SET_BOOL(sync_tab_favicons);
@@ -737,6 +750,7 @@ std::unique_ptr<base::DictionaryValue> EntitySpecificsToValue(
SET_FIELD(app_list, AppListSpecificsToValue);
SET_FIELD(app_notification, AppNotificationToValue);
SET_FIELD(app_setting, AppSettingSpecificsToValue);
+ SET_FIELD(arc_package, ArcPackageSpecificsToValue);
SET_FIELD(article, ArticleSpecificsToValue);
SET_FIELD(autofill, AutofillSpecificsToValue);
SET_FIELD(autofill_profile, AutofillProfileSpecificsToValue);
« no previous file with comments | « sync/protocol/proto_value_conversions.h ('k') | sync/protocol/proto_value_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698