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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2190963002: Ash window cycle ui: don't create mirrored layers for previews until (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: loc-- Created 4 years, 4 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 | « no previous file | ash/wm/window_mirror_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index 5d925ba952eb1524231b699b5745ecbddde9f7cd..ade4df575c47c6ac9b2af1a214dae310d35992cf 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -690,9 +690,7 @@ void WmWindowAura::SetDescendantsStayInSameRootWindow(bool value) {
}
std::unique_ptr<views::View> WmWindowAura::CreateViewWithRecreatedLayers() {
- std::unique_ptr<wm::WindowMirrorView> view(new wm::WindowMirrorView(this));
- view->Init();
- return std::move(view);
+ return base::WrapUnique(new wm::WindowMirrorView(this));
}
void WmWindowAura::AddObserver(WmWindowObserver* observer) {
« no previous file with comments | « no previous file | ash/wm/window_mirror_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698