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

Unified Diff: chrome/browser/chromeos/net/wake_on_wifi_manager.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 | « chrome/browser/chromeos/net/wake_on_wifi_manager.h ('k') | chrome/browser/chromeos/options/cert_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/net/wake_on_wifi_manager.cc
diff --git a/chrome/browser/chromeos/net/wake_on_wifi_manager.cc b/chrome/browser/chromeos/net/wake_on_wifi_manager.cc
index 370acb297a73a06ac778727b6759abb3dc75d1c1..98db612dcdec85f0ad943689dcb51ece89f8950f 100644
--- a/chrome/browser/chromeos/net/wake_on_wifi_manager.cc
+++ b/chrome/browser/chromeos/net/wake_on_wifi_manager.cc
@@ -4,13 +4,14 @@
#include "chrome/browser/chromeos/net/wake_on_wifi_manager.h"
+#include <memory>
#include <string>
#include "base/bind.h"
#include "base/containers/scoped_ptr_hash_map.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "base/sys_info.h"
#include "base/values.h"
#include "chrome/browser/chrome_notification_types.h"
@@ -333,7 +334,7 @@ void WakeOnWifiManager::OnProfileAdded(Profile* profile) {
// add will do nothing if |profile| already exists in |connection_observers_|.
auto result = connection_observers_.add(
profile,
- make_scoped_ptr(new WakeOnWifiManager::WakeOnPacketConnectionObserver(
+ base::WrapUnique(new WakeOnWifiManager::WakeOnPacketConnectionObserver(
profile, wifi_properties_received_)));
if (result.second) {
« no previous file with comments | « chrome/browser/chromeos/net/wake_on_wifi_manager.h ('k') | chrome/browser/chromeos/options/cert_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698