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

Unified Diff: ui/wm/core/window_util.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/wm/core/window_util.h ('k') | ui/wm/core/window_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/window_util.cc
diff --git a/ui/wm/core/window_util.cc b/ui/wm/core/window_util.cc
index e7f93f2f1ff629606e128bb300ec7d842a0c6466..b0cb19cd5ac59a011d5f53ec30c8b9710eadcc26 100644
--- a/ui/wm/core/window_util.cc
+++ b/ui/wm/core/window_util.cc
@@ -80,8 +80,8 @@ aura::Window* GetToplevelWindow(aura::Window* window) {
return client ? client->GetToplevelWindow(window) : NULL;
}
-scoped_ptr<ui::LayerTreeOwner> RecreateLayers(ui::LayerOwner* root) {
- scoped_ptr<ui::LayerTreeOwner> old_layer(
+std::unique_ptr<ui::LayerTreeOwner> RecreateLayers(ui::LayerOwner* root) {
+ std::unique_ptr<ui::LayerTreeOwner> old_layer(
new ui::LayerTreeOwner(root->RecreateLayer().release()));
if (old_layer->root())
CloneChildren(root->layer(), old_layer->root());
« no previous file with comments | « ui/wm/core/window_util.h ('k') | ui/wm/core/window_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698