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

Unified Diff: components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc

Issue 506633004: Remove implicit conversions from scoped_refptr to T* in components/policy/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some more changes Created 6 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: components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc b/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
index c7b184b033116cf933dd8b1df43413e487c23748..24b92934fbd226d4beb9725017d5b324cf74e01e 100644
--- a/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
+++ b/components/policy/core/common/cloud/cloud_policy_client_registration_helper.cc
@@ -155,7 +155,7 @@ CloudPolicyClientRegistrationHelper::CloudPolicyClientRegistrationHelper(
: context_(client->GetRequestContext()),
client_(client),
registration_type_(registration_type) {
- DCHECK(context_);
+ DCHECK(context_.get());
DCHECK(client_);
}
@@ -197,7 +197,7 @@ void CloudPolicyClientRegistrationHelper::StartRegistrationWithLoginToken(
new CloudPolicyClientRegistrationHelper::LoginTokenHelper());
login_token_helper_->FetchAccessToken(
login_refresh_token,
- context_,
+ context_.get(),
base::Bind(&CloudPolicyClientRegistrationHelper::OnTokenFetched,
base::Unretained(this)));
}
@@ -240,7 +240,7 @@ void CloudPolicyClientRegistrationHelper::OnTokenFetched(
DVLOG(1) << "Fetched new scoped OAuth token:" << oauth_access_token_;
// Now we've gotten our access token - contact GAIA to see if this is a
// hosted domain.
- user_info_fetcher_.reset(new UserInfoFetcher(this, context_));
+ user_info_fetcher_.reset(new UserInfoFetcher(this, context_.get()));
user_info_fetcher_->Start(oauth_access_token_);
}

Powered by Google App Engine
This is Rietveld 408576698