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

Side by Side Diff: chrome/browser/sync/profile_sync_service.cc

Issue 45583002: Merge 228738 "Clear the access token when destroying the Sync ba..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1650/src/
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/sync/profile_sync_service.h" 5 #include "chrome/browser/sync/profile_sync_service.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 UMA_HISTOGRAM_TIMES("Sync.Shutdown.BackendDestroyedTime", shutdown_time); 799 UMA_HISTOGRAM_TIMES("Sync.Shutdown.BackendDestroyedTime", shutdown_time);
800 800
801 weak_factory_.InvalidateWeakPtrs(); 801 weak_factory_.InvalidateWeakPtrs();
802 802
803 // Clear various flags. 803 // Clear various flags.
804 start_up_time_ = base::Time(); 804 start_up_time_ = base::Time();
805 expect_sync_configuration_aborted_ = false; 805 expect_sync_configuration_aborted_ = false;
806 is_auth_in_progress_ = false; 806 is_auth_in_progress_ = false;
807 backend_initialized_ = false; 807 backend_initialized_ = false;
808 cached_passphrase_.clear(); 808 cached_passphrase_.clear();
809 access_token_.clear();
809 encryption_pending_ = false; 810 encryption_pending_ = false;
810 encrypt_everything_ = false; 811 encrypt_everything_ = false;
811 encrypted_types_ = syncer::SyncEncryptionHandler::SensitiveTypes(); 812 encrypted_types_ = syncer::SyncEncryptionHandler::SensitiveTypes();
812 passphrase_required_reason_ = syncer::REASON_PASSPHRASE_NOT_REQUIRED; 813 passphrase_required_reason_ = syncer::REASON_PASSPHRASE_NOT_REQUIRED;
813 request_access_token_retry_timer_.Stop(); 814 request_access_token_retry_timer_.Stop();
814 // Revert to "no auth error". 815 // Revert to "no auth error".
815 if (last_auth_error_.state() != GoogleServiceAuthError::NONE) 816 if (last_auth_error_.state() != GoogleServiceAuthError::NONE)
816 UpdateAuthErrorState(GoogleServiceAuthError::AuthErrorNone()); 817 UpdateAuthErrorState(GoogleServiceAuthError::AuthErrorNone());
817 818
818 if (sync_global_error_) { 819 if (sync_global_error_) {
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after
2150 NOTREACHED(); 2151 NOTREACHED();
2151 #endif 2152 #endif
2152 } 2153 }
2153 2154
2154 return signin_->GetAuthenticatedUsername(); 2155 return signin_->GetAuthenticatedUsername();
2155 } 2156 }
2156 2157
2157 WeakHandle<syncer::JsEventHandler> ProfileSyncService::GetJsEventHandler() { 2158 WeakHandle<syncer::JsEventHandler> ProfileSyncService::GetJsEventHandler() {
2158 return MakeWeakHandle(sync_js_controller_.AsWeakPtr()); 2159 return MakeWeakHandle(sync_js_controller_.AsWeakPtr());
2159 } 2160 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698