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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host.cc

Issue 9956097: suppress user/password dialog when re-enabling sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/sync/glue/sync_backend_host.h" 7 #include "chrome/browser/sync/glue/sync_backend_host.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 if (!sync_loop_) 913 if (!sync_loop_)
914 return; 914 return;
915 DCHECK_EQ(MessageLoop::current(), sync_loop_); 915 DCHECK_EQ(MessageLoop::current(), sync_loop_);
916 host_.Call( 916 host_.Call(
917 FROM_HERE, 917 FROM_HERE,
918 &SyncBackendHost::NotifyPassphraseAccepted); 918 &SyncBackendHost::NotifyPassphraseAccepted);
919 } 919 }
920 920
921 void SyncBackendHost::Core::OnBootstrapTokenUpdated( 921 void SyncBackendHost::Core::OnBootstrapTokenUpdated(
922 const std::string& bootstrap_token) { 922 const std::string& bootstrap_token) {
923 LOG(WARNING) << "OnBootstrapTokenUpdated : " << bootstrap_token;
923 if (!sync_loop_) 924 if (!sync_loop_)
924 return; 925 return;
925 DCHECK_EQ(MessageLoop::current(), sync_loop_); 926 DCHECK_EQ(MessageLoop::current(), sync_loop_);
926 host_.Call( 927 host_.Call(
927 FROM_HERE, 928 FROM_HERE,
928 &SyncBackendHost::PersistEncryptionBootstrapToken, bootstrap_token); 929 &SyncBackendHost::PersistEncryptionBootstrapToken, bootstrap_token);
929 } 930 }
930 931
931 void SyncBackendHost::Core::OnStopSyncingPermanently() { 932 void SyncBackendHost::Core::OnStopSyncingPermanently() {
932 if (!sync_loop_) 933 if (!sync_loop_)
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 FROM_HERE, 1423 FROM_HERE,
1423 base::Bind(&SyncBackendHost::Core::DoRefreshNigori, 1424 base::Bind(&SyncBackendHost::Core::DoRefreshNigori,
1424 core_.get(), sync_thread_done_callback)); 1425 core_.get(), sync_thread_done_callback));
1425 } 1426 }
1426 1427
1427 #undef SDVLOG 1428 #undef SDVLOG
1428 1429
1429 #undef SLOG 1430 #undef SLOG
1430 1431
1431 } // namespace browser_sync 1432 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698