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

Unified Diff: components/wifi_sync/wifi_credential.h

Issue 1917673002: Convert //components/[u-z]* 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: components/wifi_sync/wifi_credential.h
diff --git a/components/wifi_sync/wifi_credential.h b/components/wifi_sync/wifi_credential.h
index bb639975c9fa7e3cc694a6371144e5ba32887695..5b5107f9252d3c91ed233c992d05f56e182ce154 100644
--- a/components/wifi_sync/wifi_credential.h
+++ b/components/wifi_sync/wifi_credential.h
@@ -7,11 +7,11 @@
#include <stdint.h>
+#include <memory>
#include <set>
#include <string>
#include <vector>
-#include "base/memory/scoped_ptr.h"
#include "components/wifi_sync/wifi_security_class.h"
namespace base {
@@ -40,7 +40,7 @@ class WifiCredential final { // final because the class is copyable
// and |passphrase|. No assumptions are made about the input
// encoding of |ssid|. |passphrase|, however, must be valid
// UTF-8. Returns NULL if the parameters are invalid.
- static scoped_ptr<WifiCredential> Create(
+ static std::unique_ptr<WifiCredential> Create(
const SsidBytes& ssid,
WifiSecurityClass security_class,
const std::string& passphrase);
@@ -56,7 +56,7 @@ class WifiCredential final { // final because the class is copyable
// to limitations in ONC, this operation fails if ssid() is not
// valid UTF-8. In case of failure, returns a scoped_ptr with value
// nullptr.
- scoped_ptr<base::DictionaryValue> ToOncProperties() const;
+ std::unique_ptr<base::DictionaryValue> ToOncProperties() const;
// Returns a string representation of the credential, for debugging
// purposes. The string will not include the credential's passphrase.
« no previous file with comments | « components/wifi_sync/wifi_config_delegate_chromeos_unittest.cc ('k') | components/wifi_sync/wifi_credential.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698