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

Unified Diff: chrome/browser/sync/engine/syncer_proto_util.cc

Issue 7481009: Test birtday error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typos in testserver.py Created 9 years, 5 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/engine/syncer_proto_util.cc
diff --git a/chrome/browser/sync/engine/syncer_proto_util.cc b/chrome/browser/sync/engine/syncer_proto_util.cc
index e96af94423096697d903be9c8c5422cabbb8be76..6238498e6c7007315758be6e7abfd7887cb9de22 100644
--- a/chrome/browser/sync/engine/syncer_proto_util.cc
+++ b/chrome/browser/sync/engine/syncer_proto_util.cc
@@ -99,7 +99,8 @@ bool SyncerProtoUtil::VerifyResponseBirthday(syncable::Directory* dir,
std::string local_birthday = dir->store_birthday();
- if (response->error_code() == ClientToServerResponse::CLEAR_PENDING) {
+ if (response->error_code() == ClientToServerResponse::CLEAR_PENDING ||
+ response->error_code() == ClientToServerResponse::NOT_MY_BIRTHDAY) {
// Birthday verification failures result in stopping sync and deleting
// local sync data.
return false;
« no previous file with comments | « no previous file | chrome/browser/sync/profile_sync_service_harness.h » ('j') | chrome/browser/sync/profile_sync_service_harness.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698