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

Unified Diff: sync/engine/syncer_util.cc

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indent, and remove some redundant using declarations Created 8 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
Index: sync/engine/syncer_util.cc
diff --git a/sync/engine/syncer_util.cc b/sync/engine/syncer_util.cc
index 821b07c9d368cf1bf4f3535d8485ddb28bacd208..d50f4873c8a5b470b842cad4638cb01b05dd9508 100644
--- a/sync/engine/syncer_util.cc
+++ b/sync/engine/syncer_util.cc
@@ -250,7 +250,7 @@ UpdateAttemptResponse AttemptToUpdateEntry(
!cryptographer->CanDecrypt(specifics.encrypted())) {
// We can't decrypt this node yet.
DVLOG(1) << "Received an undecryptable "
- << syncable::ModelTypeToString(entry->GetServerModelType())
+ << syncer::ModelTypeToString(entry->GetServerModelType())
rlarocque 2012/07/03 17:51:25 It's not necessary to explicitly specify the names
akalin 2012/07/03 21:47:08 Yeah. I'm planning to clean it all up once everyt
<< " update, returning encryption_conflict.";
return CONFLICT_ENCRYPTION;
} else if (specifics.has_password() &&
@@ -302,11 +302,11 @@ UpdateAttemptResponse AttemptToUpdateEntry(
if (specifics.has_encrypted()) {
DVLOG(2) << "Received a decryptable "
- << syncable::ModelTypeToString(entry->GetServerModelType())
+ << syncer::ModelTypeToString(entry->GetServerModelType())
<< " update, applying normally.";
} else {
DVLOG(2) << "Received an unencrypted "
- << syncable::ModelTypeToString(entry->GetServerModelType())
+ << syncer::ModelTypeToString(entry->GetServerModelType())
<< " update, applying normally.";
}
@@ -386,7 +386,7 @@ void UpdateServerFieldsFromUpdate(
}
// Store the datatype-specific part as a protobuf.
if (update.has_specifics()) {
- DCHECK(update.GetModelType() != syncable::UNSPECIFIED)
+ DCHECK(update.GetModelType() != syncer::UNSPECIFIED)
<< "Storing unrecognized datatype in sync database.";
target->Put(SERVER_SPECIFICS, update.specifics());
} else if (update.has_bookmarkdata()) {
@@ -595,7 +595,7 @@ VerifyResult VerifyUpdateConsistency(
syncable::MutableEntry* target,
const bool deleted,
const bool is_directory,
- syncable::ModelType model_type) {
+ syncer::ModelType model_type) {
CHECK(target->good());
@@ -603,7 +603,7 @@ VerifyResult VerifyUpdateConsistency(
if (deleted)
return VERIFY_SUCCESS;
- if (model_type == syncable::UNSPECIFIED) {
+ if (model_type == syncer::UNSPECIFIED) {
// This update is to an item of a datatype we don't recognize. The server
// shouldn't have sent it to us. Throw it on the ground.
return VERIFY_SKIP;

Powered by Google App Engine
This is Rietveld 408576698