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

Unified Diff: chrome/browser/signin/profile_oauth2_token_service.cc

Issue 23068005: Convert UserPolicySigninService to use OAuth2TokenService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android fixes. Created 7 years, 4 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/signin/profile_oauth2_token_service.cc
diff --git a/chrome/browser/signin/profile_oauth2_token_service.cc b/chrome/browser/signin/profile_oauth2_token_service.cc
index 439e5ecffd7f6156b9b3a18dbe396bc80f989d6b..b82a23672f4c421e912194d09e49989e82a9aed8 100644
--- a/chrome/browser/signin/profile_oauth2_token_service.cc
+++ b/chrome/browser/signin/profile_oauth2_token_service.cc
@@ -68,8 +68,6 @@ ProfileOAuth2TokenService::~ProfileOAuth2TokenService() {
}
void ProfileOAuth2TokenService::Initialize(Profile* profile) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
-
DCHECK(profile);
DCHECK(!profile_);
profile_ = profile;
@@ -96,6 +94,7 @@ void ProfileOAuth2TokenService::Initialize(Profile* profile) {
}
void ProfileOAuth2TokenService::Shutdown() {
+ DCHECK(profile_) << "Shutdown() called without matching call to Initialize()";
CancelAllRequests();
signin_global_error_->RemoveProvider(this);
GlobalErrorServiceFactory::GetForProfile(profile_)->RemoveGlobalError(

Powered by Google App Engine
This is Rietveld 408576698