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

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_window_manager.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h" 5 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h"
6 6
7 #include "ash/ash_switches.h" 7 #include "ash/ash_switches.h"
8 #include "ash/root_window_controller.h" 8 #include "ash/root_window_controller.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/shell_window_ids.h" 10 #include "ash/shell_window_ids.h"
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 // Inform the WorkspaceLayoutManager that we want to show a backdrop behind 318 // Inform the WorkspaceLayoutManager that we want to show a backdrop behind
319 // the topmost window of its container. 319 // the topmost window of its container.
320 Shell::RootWindowControllerList controllers = 320 Shell::RootWindowControllerList controllers =
321 Shell::GetAllRootWindowControllers(); 321 Shell::GetAllRootWindowControllers();
322 for (Shell::RootWindowControllerList::iterator iter = controllers.begin(); 322 for (Shell::RootWindowControllerList::iterator iter = controllers.begin();
323 iter != controllers.end(); ++iter) { 323 iter != controllers.end(); ++iter) {
324 RootWindowController* controller = *iter; 324 RootWindowController* controller = *iter;
325 aura::Window* container = Shell::GetContainer( 325 aura::Window* container = Shell::GetContainer(
326 controller->GetRootWindow(), kShellWindowId_DefaultContainer); 326 controller->GetRootWindow(), kShellWindowId_DefaultContainer);
327 controller->workspace_controller()->SetMaximizeBackdropDelegate( 327 controller->workspace_controller()->SetMaximizeBackdropDelegate(
328 scoped_ptr<WorkspaceLayoutManagerDelegate>( 328 std::unique_ptr<WorkspaceLayoutManagerDelegate>(
329 enable ? new WorkspaceBackdropDelegate(container) : NULL)); 329 enable ? new WorkspaceBackdropDelegate(container) : NULL));
330 } 330 }
331 } 331 }
332 332
333 } // namespace ash 333 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698