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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_client_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_client_impl.h
diff --git a/components/proximity_auth/cryptauth/cryptauth_client_impl.h b/components/proximity_auth/cryptauth/cryptauth_client_impl.h
index 9820427118bac5e3afa63270625d971b96b6eaf3..6a6c8bf450de5dba8c80d6fd9b082bfcde1c0a0c 100644
--- a/components/proximity_auth/cryptauth/cryptauth_client_impl.h
+++ b/components/proximity_auth/cryptauth/cryptauth_client_impl.h
@@ -30,8 +30,8 @@ class CryptAuthClientImpl : public CryptAuthClient {
// CryptAuth requests. The |device_classifier| argument contains basic device
// information of the caller (e.g. version and device type).
CryptAuthClientImpl(
- scoped_ptr<CryptAuthApiCallFlow> api_call_flow,
- scoped_ptr<CryptAuthAccessTokenFetcher> access_token_fetcher,
+ std::unique_ptr<CryptAuthApiCallFlow> api_call_flow,
+ std::unique_ptr<CryptAuthAccessTokenFetcher> access_token_fetcher,
scoped_refptr<net::URLRequestContextGetter> url_request_context,
const cryptauth::DeviceClassifier& device_classifier);
~CryptAuthClientImpl() override;
@@ -88,10 +88,10 @@ class CryptAuthClientImpl : public CryptAuthClient {
void OnApiCallFailed(const std::string& error_message);
// Constructs and executes the actual HTTP request.
- scoped_ptr<CryptAuthApiCallFlow> api_call_flow_;
+ std::unique_ptr<CryptAuthApiCallFlow> api_call_flow_;
// Fetches the access token authorizing the API calls.
- scoped_ptr<CryptAuthAccessTokenFetcher> access_token_fetcher_;
+ std::unique_ptr<CryptAuthAccessTokenFetcher> access_token_fetcher_;
// The context for network requests.
scoped_refptr<net::URLRequestContextGetter> url_request_context_;
@@ -134,7 +134,7 @@ class CryptAuthClientFactoryImpl : public CryptAuthClientFactory {
~CryptAuthClientFactoryImpl() override;
// CryptAuthClientFactory:
- scoped_ptr<CryptAuthClient> CreateInstance() override;
+ std::unique_ptr<CryptAuthClient> CreateInstance() override;
private:
OAuth2TokenService* token_service_;
« no previous file with comments | « components/proximity_auth/cryptauth/cryptauth_client.h ('k') | components/proximity_auth/cryptauth/cryptauth_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698