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

Unified Diff: chrome/browser/sync/syncable/model_type.cc

Issue 2803005: Reland: Client side changes to set and get nigori specifics with passing (Closed)
Patch Set: Created 10 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 | « chrome/browser/sync/syncable/model_type.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable/model_type.cc
diff --git a/chrome/browser/sync/syncable/model_type.cc b/chrome/browser/sync/syncable/model_type.cc
index 8aefe404efc29c258861eb6ac7b604b579d37b8c..ea89bb129d5756d53319e00a945745926e1c0fad 100644
--- a/chrome/browser/sync/syncable/model_type.cc
+++ b/chrome/browser/sync/syncable/model_type.cc
@@ -8,6 +8,7 @@
#include "chrome/browser/sync/protocol/autofill_specifics.pb.h"
#include "chrome/browser/sync/protocol/bookmark_specifics.pb.h"
#include "chrome/browser/sync/protocol/extension_specifics.pb.h"
+#include "chrome/browser/sync/protocol/nigori_specifics.pb.h"
#include "chrome/browser/sync/protocol/password_specifics.pb.h"
#include "chrome/browser/sync/protocol/preference_specifics.pb.h"
#include "chrome/browser/sync/protocol/sync.pb.h"
@@ -40,6 +41,9 @@ void AddDefaultExtensionValue(syncable::ModelType datatype,
case EXTENSIONS:
specifics->MutableExtension(sync_pb::extension);
break;
+ case NIGORI:
+ specifics->MutableExtension(sync_pb::nigori);
+ break;
default:
NOTREACHED() << "No known extension for model type.";
}
@@ -98,6 +102,9 @@ ModelType GetModelTypeFromSpecifics(const sync_pb::EntitySpecifics& specifics) {
if (specifics.HasExtension(sync_pb::extension))
return EXTENSIONS;
+ if (specifics.HasExtension(sync_pb::nigori))
+ return NIGORI;
+
return UNSPECIFIED;
}
« no previous file with comments | « chrome/browser/sync/syncable/model_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698