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 d843b0411cbb449d99d3ce929a2753877fd2f245..819e3cab22b41529fbcb996914dac654b07c8790 100644 |
--- a/google_apis/gaia/oauth2_token_service_request.cc |
+++ b/google_apis/gaia/oauth2_token_service_request.cc |
@@ -220,7 +220,7 @@ RequestCore::~RequestCore() { |
void RequestCore::StartOnTokenServiceThread() { |
DCHECK(token_service_task_runner()->BelongsToCurrentThread()); |
- request_ = token_service()->StartRequest(account_id_, scopes_, this).Pass(); |
+ request_ = token_service()->StartRequest(account_id_, scopes_, this); |
} |
void RequestCore::StopOnTokenServiceThread() { |
@@ -336,7 +336,7 @@ scoped_ptr<OAuth2TokenServiceRequest> OAuth2TokenServiceRequest::CreateAndStart( |
scoped_refptr<Core> core( |
new RequestCore(request.get(), provider, consumer, account_id, scopes)); |
request->StartWithCore(core); |
- return request.Pass(); |
+ return request; |
} |
// static |