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

Unified Diff: components/memory_pressure/memory_pressure_monitor.h

Issue 1918083002: Convert //components/[f-n]* 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/memory_pressure/memory_pressure_monitor.h
diff --git a/components/memory_pressure/memory_pressure_monitor.h b/components/memory_pressure/memory_pressure_monitor.h
index 27d3c5fe57d99e4954c73742d6cec2cb442fd8f8..68ad09cc0ee7e5a2c7ba5f7591384edb9892cc4e 100644
--- a/components/memory_pressure/memory_pressure_monitor.h
+++ b/components/memory_pressure/memory_pressure_monitor.h
@@ -29,9 +29,9 @@
#define COMPONENTS_MEMORY_PRESSURE_MEMORY_PRESSURE_MONITOR_H_
#include <map>
+#include <memory>
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/synchronization/lock.h"
#include "base/time/time.h"
@@ -176,7 +176,7 @@ class MemoryPressureMonitor {
// notifications to OnMemoryPressureChanged, and setting the initial pressure
// value. The OS specific implementation is responsible for allocating this
// object.
- scoped_ptr<MemoryPressureMonitorImpl> monitor_impl_;
+ std::unique_ptr<MemoryPressureMonitorImpl> monitor_impl_;
#endif
// Object state.
« no previous file with comments | « components/login/screens/screen_context_unittest.cc ('k') | components/memory_pressure/memory_pressure_monitor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698