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

Unified Diff: components/browser_sync/browser/profile_sync_service.cc

Issue 1498663002: [Sync] Clear access token on shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No really Created 5 years 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/profile_sync_service_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_sync/browser/profile_sync_service.cc
diff --git a/components/browser_sync/browser/profile_sync_service.cc b/components/browser_sync/browser/profile_sync_service.cc
index 3b8bf73520ce2a66c0ca6d6d1c26bb54b05b74e0..ba286155b608730a24209f61e7786ed6d5c4f63b 100644
--- a/components/browser_sync/browser/profile_sync_service.cc
+++ b/components/browser_sync/browser/profile_sync_service.cc
@@ -898,6 +898,7 @@ void ProfileSyncService::ShutdownImpl(syncer::ShutdownReason reason) {
encrypted_types_ = syncer::SyncEncryptionHandler::SensitiveTypes();
passphrase_required_reason_ = syncer::REASON_PASSPHRASE_NOT_REQUIRED;
catch_up_configure_in_progress_ = false;
+ access_token_.clear();
request_access_token_retry_timer_.Stop();
// Revert to "no auth error".
if (last_auth_error_.state() != GoogleServiceAuthError::NONE)
« no previous file with comments | « chrome/browser/sync/profile_sync_service_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698