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

Unified Diff: components/proximity_auth/proximity_auth_client.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/proximity_auth_client.h
diff --git a/components/proximity_auth/proximity_auth_client.h b/components/proximity_auth/proximity_auth_client.h
index 734b32a0b804f614c143ccf8feb6768fb7f73557..ae2c340bdae2b7e8403c3d2691140162ccaac4e0 100644
--- a/components/proximity_auth/proximity_auth_client.h
+++ b/components/proximity_auth/proximity_auth_client.h
@@ -5,10 +5,10 @@
#ifndef COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_CLIENT_H_
#define COMPONENTS_PROXIMITY_AUTH_PROXIMITY_AUTH_CLIENT_H_
+#include <memory>
#include <string>
#include "base/callback_forward.h"
-#include "base/memory/scoped_ptr.h"
#include "components/proximity_auth/cryptauth/proto/cryptauth_api.pb.h"
#include "components/proximity_auth/screenlock_state.h"
@@ -59,10 +59,12 @@ class ProximityAuthClient {
virtual PrefService* GetPrefService() = 0;
// Returns the SecureMessageDelegate used by the system.
- virtual scoped_ptr<SecureMessageDelegate> CreateSecureMessageDelegate() = 0;
+ virtual std::unique_ptr<SecureMessageDelegate>
+ CreateSecureMessageDelegate() = 0;
// Constructs the CryptAuthClientFactory that can be used for API requests.
- virtual scoped_ptr<CryptAuthClientFactory> CreateCryptAuthClientFactory() = 0;
+ virtual std::unique_ptr<CryptAuthClientFactory>
+ CreateCryptAuthClientFactory() = 0;
// Constructs the DeviceClassifier message that is sent to CryptAuth for all
// API requests.
« no previous file with comments | « components/proximity_auth/mock_proximity_auth_client.cc ('k') | components/proximity_auth/proximity_auth_pref_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698