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

Unified Diff: google_apis/gaia/oauth2_token_service_unittest.cc

Issue 2755403002: Fix unique_ptr usage in handling OAuth2TokenService::StartRequest result (Closed)
Patch Set: Created 3 years, 9 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 | « components/signin/core/browser/child_account_info_fetcher_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/oauth2_token_service_unittest.cc
diff --git a/google_apis/gaia/oauth2_token_service_unittest.cc b/google_apis/gaia/oauth2_token_service_unittest.cc
index bd770cf6b7e781eb134601e9cf7b65f5373b37d6..b233d898a96f90d6ccde4a000235ef9a1058602e 100644
--- a/google_apis/gaia/oauth2_token_service_unittest.cc
+++ b/google_apis/gaia/oauth2_token_service_unittest.cc
@@ -36,8 +36,8 @@ class RetryingTestingOAuth2TokenServiceConsumer
void OnGetTokenFailure(const OAuth2TokenService::Request* request,
const GoogleServiceAuthError& error) override {
TestingOAuth2TokenServiceConsumer::OnGetTokenFailure(request, error);
- request_.reset(oauth2_service_->StartRequest(
- account_id_, OAuth2TokenService::ScopeSet(), this).release());
+ request_ = oauth2_service_->StartRequest(
+ account_id_, OAuth2TokenService::ScopeSet(), this);
}
OAuth2TokenService* oauth2_service_;
« no previous file with comments | « components/signin/core/browser/child_account_info_fetcher_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698