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

Unified Diff: components/browser_watcher/window_hang_monitor_win_unittest.cc

Issue 1921973002: Convert //components/[a-e]* 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/bitmap_uploader/bitmap_uploader.cc ('k') | components/bubble/bubble_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_watcher/window_hang_monitor_win_unittest.cc
diff --git a/components/browser_watcher/window_hang_monitor_win_unittest.cc b/components/browser_watcher/window_hang_monitor_win_unittest.cc
index 4ca6e38efc73e7e792c3cdd6b5f006be93bd3be1..d1917035e9bbaec861dd6e8a479107567c742b23 100644
--- a/components/browser_watcher/window_hang_monitor_win_unittest.cc
+++ b/components/browser_watcher/window_hang_monitor_win_unittest.cc
@@ -4,10 +4,11 @@
#include "components/browser_watcher/window_hang_monitor_win.h"
+#include <memory>
+
#include "base/base_paths.h"
#include "base/base_switches.h"
#include "base/command_line.h"
-#include "base/memory/scoped_ptr.h"
#include "base/path_service.h"
#include "base/process/launch.h"
#include "base/process/process.h"
@@ -209,7 +210,7 @@ class MonitoredProcessClient {
// The thread that holds the message window.
base::Thread message_window_thread_;
- scoped_ptr<base::win::MessageWindow> message_window_;
+ std::unique_ptr<base::win::MessageWindow> message_window_;
// Event used to hang the message window.
base::WaitableEvent hang_event_;
@@ -318,7 +319,7 @@ class HangMonitorThread {
// the WindowHangMonitor.
base::WaitableEvent event_received_;
// The WindowHangMonitor under test.
- scoped_ptr<WindowHangMonitor> hang_monitor_;
+ std::unique_ptr<WindowHangMonitor> hang_monitor_;
// The background thread.
base::Thread thread_;
« no previous file with comments | « components/bitmap_uploader/bitmap_uploader.cc ('k') | components/bubble/bubble_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698