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

Unified Diff: ui/gfx/sys_color_change_listener.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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 | « ui/gfx/screen_mac.mm ('k') | ui/gfx/text_elider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/sys_color_change_listener.cc
diff --git a/ui/gfx/sys_color_change_listener.cc b/ui/gfx/sys_color_change_listener.cc
index fcda18935af852afdd4a7b7d75353f5996984919..8c6cd04e7a2c28c347d92d81d4499b282edb6ddf 100644
--- a/ui/gfx/sys_color_change_listener.cc
+++ b/ui/gfx/sys_color_change_listener.cc
@@ -6,9 +6,10 @@
#include <windows.h>
+#include <memory>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "base/observer_list.h"
#include "ui/gfx/color_utils.h"
@@ -63,7 +64,7 @@ class SysColorChangeObserver {
void OnWndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
base::ObserverList<SysColorChangeListener> listeners_;
- scoped_ptr<gfx::SingletonHwndObserver> singleton_hwnd_observer_;
+ std::unique_ptr<gfx::SingletonHwndObserver> singleton_hwnd_observer_;
};
// static
« no previous file with comments | « ui/gfx/screen_mac.mm ('k') | ui/gfx/text_elider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698