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

Unified Diff: ash/debug.cc

Issue 1867223004: Convert //ash 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: ash/debug.cc
diff --git a/ash/debug.cc b/ash/debug.cc
index 908c172036ee45c3cfb6c2f7f3d23d0875dd0386..fe3788961c765ac67650c742f562ffa03c434324 100644
--- a/ash/debug.cc
+++ b/ash/debug.cc
@@ -15,7 +15,7 @@ namespace debug {
void ToggleShowDebugBorders() {
aura::Window::Windows root_windows =
Shell::GetInstance()->GetAllRootWindows();
- scoped_ptr<bool> value;
+ std::unique_ptr<bool> value;
for (aura::Window::Windows::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
ui::Compositor* compositor = (*it)->GetHost()->compositor();
@@ -30,7 +30,7 @@ void ToggleShowDebugBorders() {
void ToggleShowFpsCounter() {
aura::Window::Windows root_windows =
Shell::GetInstance()->GetAllRootWindows();
- scoped_ptr<bool> value;
+ std::unique_ptr<bool> value;
for (aura::Window::Windows::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
ui::Compositor* compositor = (*it)->GetHost()->compositor();
@@ -45,7 +45,7 @@ void ToggleShowFpsCounter() {
void ToggleShowPaintRects() {
aura::Window::Windows root_windows =
Shell::GetInstance()->GetAllRootWindows();
- scoped_ptr<bool> value;
+ std::unique_ptr<bool> value;
for (aura::Window::Windows::iterator it = root_windows.begin();
it != root_windows.end(); ++it) {
ui::Compositor* compositor = (*it)->GetHost()->compositor();

Powered by Google App Engine
This is Rietveld 408576698