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

Unified Diff: content/browser/time_zone_monitor_win.cc

Issue 1874893002: Convert //content/browser 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 | « content/browser/time_zone_monitor_mac.mm ('k') | content/browser/tracing/background_tracing_config_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/time_zone_monitor_win.cc
diff --git a/content/browser/time_zone_monitor_win.cc b/content/browser/time_zone_monitor_win.cc
index e8b84fd3d3ff0b499949583003641ee63020d293..f7eb54d7751785e04ce539c07a38c5a7f5ccfd37 100644
--- a/content/browser/time_zone_monitor_win.cc
+++ b/content/browser/time_zone_monitor_win.cc
@@ -6,10 +6,11 @@
#include <windows.h>
+#include <memory>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "ui/gfx/win/singleton_hwnd_observer.h"
namespace content {
@@ -33,14 +34,14 @@ class TimeZoneMonitorWin : public TimeZoneMonitor {
NotifyRenderers();
}
- scoped_ptr<gfx::SingletonHwndObserver> singleton_hwnd_observer_;
+ std::unique_ptr<gfx::SingletonHwndObserver> singleton_hwnd_observer_;
DISALLOW_COPY_AND_ASSIGN(TimeZoneMonitorWin);
};
// static
-scoped_ptr<TimeZoneMonitor> TimeZoneMonitor::Create() {
- return scoped_ptr<TimeZoneMonitor>(new TimeZoneMonitorWin());
+std::unique_ptr<TimeZoneMonitor> TimeZoneMonitor::Create() {
+ return std::unique_ptr<TimeZoneMonitor>(new TimeZoneMonitorWin());
}
} // namespace content
« no previous file with comments | « content/browser/time_zone_monitor_mac.mm ('k') | content/browser/tracing/background_tracing_config_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698