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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 6874018: make new syncer thread the default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Send for CR. Created 9 years, 8 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/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index aa95e2aed73e0059e01afed2d9cbe79c48b0195e..4ebe246b5a21196f8e65ad759a99645feb327677 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -598,6 +598,11 @@ void ProfileSyncService::OnClearServerDataSucceeded() {
void ProfileSyncService::OnPassphraseRequired(bool for_decryption) {
DCHECK(backend_.get());
DCHECK(backend_->IsNigoriEnabled());
+ if (unrecoverable_error_detected_) {
+ // When unrecoverable error is detected we post a task to shutdown the
tim (not reviewing) 2011/04/18 16:11:47 I don't quite understand a) how or if this arose a
lipalani1 2011/04/18 20:36:41 This arose because of this patch and how the threa
+ // backend. The task might not have executed yet.
+ return;
+ }
observed_passphrase_required_ = true;
passphrase_required_for_decryption_ = for_decryption;

Powered by Google App Engine
This is Rietveld 408576698