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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h

Issue 1912433002: Convert //components/proximity_auth from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits 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: components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h
diff --git a/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h b/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h
index 17c19bd0ea77c4666e20314812f3629b1b5b4d1d..5bf5783aef3c6e53a24a09b7b656df00fafb195e 100644
--- a/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h
+++ b/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h
@@ -5,9 +5,10 @@
#ifndef COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ACCESS_TOKEN_FETCHER_IMPL_H
#define COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ACCESS_TOKEN_FETCHER_IMPL_H
+#include <memory>
+
#include "base/callback.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "components/proximity_auth/cryptauth/cryptauth_access_token_fetcher.h"
#include "google_apis/gaia/oauth2_token_service.h"
@@ -45,7 +46,7 @@ class CryptAuthAccessTokenFetcherImpl : public CryptAuthAccessTokenFetcher,
bool fetch_started_;
// Stores the request from |token_service_| to mint the token.
- scoped_ptr<OAuth2TokenService::Request> token_request_;
+ std::unique_ptr<OAuth2TokenService::Request> token_request_;
// Callback to invoke when the token fetch succeeds or fails.
AccessTokenCallback callback_;

Powered by Google App Engine
This is Rietveld 408576698