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

Unified Diff: components/signin/core/browser/child_account_info_fetcher_impl.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 | « no previous file | google_apis/gaia/oauth2_token_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/child_account_info_fetcher_impl.cc
diff --git a/components/signin/core/browser/child_account_info_fetcher_impl.cc b/components/signin/core/browser/child_account_info_fetcher_impl.cc
index c8c2a78290af000325ce4f606db8e6bb6d64c572..1ada5f27b9beb45a09724a8f97c603eb447f3247 100644
--- a/components/signin/core/browser/child_account_info_fetcher_impl.cc
+++ b/components/signin/core/browser/child_account_info_fetcher_impl.cc
@@ -84,8 +84,8 @@ void ChildAccountInfoFetcherImpl::FetchIfNotInProgress() {
fetch_in_progress_ = true;
OAuth2TokenService::ScopeSet scopes;
scopes.insert(GaiaConstants::kOAuth1LoginScope);
- login_token_request_.reset(
- token_service_->StartRequest(account_id_, scopes, this).release());
+ login_token_request_ =
+ token_service_->StartRequest(account_id_, scopes, this);
}
void ChildAccountInfoFetcherImpl::OnGetTokenSuccess(
« no previous file with comments | « no previous file | google_apis/gaia/oauth2_token_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698