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

Unified Diff: chrome/browser/chromeos/power/extension_event_observer.h

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
Index: chrome/browser/chromeos/power/extension_event_observer.h
diff --git a/chrome/browser/chromeos/power/extension_event_observer.h b/chrome/browser/chromeos/power/extension_event_observer.h
index 0df6463fa8d0be02959b65e729862608bc8e1357..24a711e89932058c5eb40f6f5b29b071d2dc73d5 100644
--- a/chrome/browser/chromeos/power/extension_event_observer.h
+++ b/chrome/browser/chromeos/power/extension_event_observer.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include <memory>
#include <set>
#include <string>
@@ -14,7 +15,6 @@
#include "base/cancelable_callback.h"
#include "base/containers/scoped_ptr_hash_map.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "chromeos/dbus/power_manager_client.h"
@@ -68,7 +68,7 @@ class ExtensionEventObserver : public content::NotificationObserver,
ExtensionEventObserver();
~ExtensionEventObserver() override;
- scoped_ptr<TestApi> CreateTestApi();
+ std::unique_ptr<TestApi> CreateTestApi();
// Called by the WakeOnWifiManager to control whether the
// ExtensionEventObserver should or should not delay the system suspend.
@@ -116,7 +116,8 @@ class ExtensionEventObserver : public content::NotificationObserver,
struct KeepaliveSources;
base::ScopedPtrHashMap<const extensions::ExtensionHost*,
- scoped_ptr<KeepaliveSources>> keepalive_sources_;
+ std::unique_ptr<KeepaliveSources>>
+ keepalive_sources_;
std::set<Profile*> active_profiles_;
« no previous file with comments | « chrome/browser/chromeos/policy/wildcard_login_checker.h ('k') | chrome/browser/chromeos/power/extension_event_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698