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

Unified Diff: components/wifi/wifi_test.cc

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
« no previous file with comments | « components/wifi/wifi_service_win.cc ('k') | components/wifi_sync/network_state_helper_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wifi/wifi_test.cc
diff --git a/components/wifi/wifi_test.cc b/components/wifi/wifi_test.cc
index 30014affea0fb2557ffbdd24afdadfcfd1a24290..b2d1def87513e204c0139fab81195e25e7fb2516 100644
--- a/components/wifi/wifi_test.cc
+++ b/components/wifi/wifi_test.cc
@@ -4,6 +4,7 @@
#include <stdio.h>
+#include <memory>
#include <string>
#include <utility>
@@ -13,7 +14,6 @@
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
@@ -75,7 +75,7 @@ class WiFiTest {
base::mac::ScopedNSAutoreleasePool scoped_pool_;
#endif
- scoped_ptr<WiFiService> wifi_service_;
+ std::unique_ptr<WiFiService> wifi_service_;
// Need AtExitManager to support AsWeakPtr (in NetLog).
base::AtExitManager exit_manager_;
@@ -157,7 +157,8 @@ bool WiFiTest::ParseCommandLine(int argc, const char* argv[]) {
}
// Optional properties (frequency, password) to use for connect or create.
- scoped_ptr<base::DictionaryValue> properties(new base::DictionaryValue());
+ std::unique_ptr<base::DictionaryValue> properties(
+ new base::DictionaryValue());
if (!frequency.empty()) {
int value = 0;
« no previous file with comments | « components/wifi/wifi_service_win.cc ('k') | components/wifi_sync/network_state_helper_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698