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

Unified Diff: google_apis/gaia/oauth2_token_service_request.cc

Issue 498123003: Remove implicit conversions from scoped_refptr to T* in google_apis/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
« no previous file with comments | « google_apis/gaia/oauth2_api_call_flow_unittest.cc ('k') | google_apis/gcm/base/socket_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/oauth2_token_service_request.cc
diff --git a/google_apis/gaia/oauth2_token_service_request.cc b/google_apis/gaia/oauth2_token_service_request.cc
index 0c737ad5ce4a0739455f0d3750dd4f126a17b6d0..1ef48c631043c80886f5b7f320ec43bba77102c0 100644
--- a/google_apis/gaia/oauth2_token_service_request.cc
+++ b/google_apis/gaia/oauth2_token_service_request.cc
@@ -90,9 +90,9 @@ OAuth2TokenServiceRequest::Core::Core(
const scoped_refptr<TokenServiceProvider>& provider)
: owner_(owner), provider_(provider) {
DCHECK(owner_);
- DCHECK(provider_);
+ DCHECK(provider_.get());
token_service_task_runner_ = provider_->GetTokenServiceTaskRunner();
- DCHECK(token_service_task_runner_);
+ DCHECK(token_service_task_runner_.get());
}
OAuth2TokenServiceRequest::Core::~Core() {
@@ -132,7 +132,7 @@ bool OAuth2TokenServiceRequest::Core::IsStopped() const {
base::SingleThreadTaskRunner*
OAuth2TokenServiceRequest::Core::token_service_task_runner() {
- return token_service_task_runner_;
+ return token_service_task_runner_.get();
}
OAuth2TokenService* OAuth2TokenServiceRequest::Core::token_service() {
@@ -365,7 +365,7 @@ OAuth2TokenServiceRequest::OAuth2TokenServiceRequest(
}
void OAuth2TokenServiceRequest::StartWithCore(const scoped_refptr<Core>& core) {
- DCHECK(core);
+ DCHECK(core.get());
core_ = core;
core_->Start();
}
« no previous file with comments | « google_apis/gaia/oauth2_api_call_flow_unittest.cc ('k') | google_apis/gcm/base/socket_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698