: context_(client->GetRequestContext()),
client_(client),
registration_type_(registration_type) {
- DCHECK(context_);
+ DCHECK(context_.get());
DCHECK(client_);
}
new CloudPolicyClientRegistrationHelper::LoginTokenHelper());
login_token_helper_->FetchAccessToken(
login_refresh_token,
- context_,
+ context_.get(),
base::Bind(&CloudPolicyClientRegistrationHelper::OnTokenFetched,
base::Unretained(this)));
}
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_);
}