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

Unified Diff: google_apis/gaia/gaia_auth_fetcher.cc

Issue 1873663002: Convert //google_apis from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: google_apis/gaia/gaia_auth_fetcher.cc
diff --git a/google_apis/gaia/gaia_auth_fetcher.cc b/google_apis/gaia/gaia_auth_fetcher.cc
index d614cd4c27c40a3e6c94db353cb2276f7b535e18..ca6054a33076852a7069e7ec4de4df8cb3d404ac 100644
--- a/google_apis/gaia/gaia_auth_fetcher.cc
+++ b/google_apis/gaia/gaia_auth_fetcher.cc
@@ -52,7 +52,7 @@ bool ExtractOAuth2TokenPairResponse(const std::string& data,
DCHECK(access_token);
DCHECK(expires_in_secs);
- scoped_ptr<base::Value> value = base::JSONReader::Read(data);
+ std::unique_ptr<base::Value> value = base::JSONReader::Read(data);
if (!value.get() || value->GetType() != base::Value::TYPE_DICTIONARY)
return false;
@@ -467,7 +467,7 @@ bool GaiaAuthFetcher::ParseListIdpSessionsResponse(const std::string& data,
std::string* login_hint) {
DCHECK(login_hint);
- scoped_ptr<base::Value> value = base::JSONReader::Read(data);
+ std::unique_ptr<base::Value> value = base::JSONReader::Read(data);
if (!value.get() || value->GetType() != base::Value::TYPE_DICTIONARY)
return false;

Powered by Google App Engine
This is Rietveld 408576698