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

Unified Diff: ash/display/mirror_window_controller.cc

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 years 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/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/mirror_window_controller.cc
diff --git a/ash/display/mirror_window_controller.cc b/ash/display/mirror_window_controller.cc
index 66c0d86dcfd4a0530e0b4b23f74d516451ee0a29..b0e2d24f58708b56af2c74c3faee2a115031379d 100644
--- a/ash/display/mirror_window_controller.cc
+++ b/ash/display/mirror_window_controller.cc
@@ -228,9 +228,11 @@ void MirrorWindowController::UpdateWindow(
reflector_->AddMirroringLayer(mirror_window->layer());
} else {
reflector_ =
- aura::Env::GetInstance()->context_factory()->CreateReflector(
- Shell::GetPrimaryRootWindow()->GetHost()->compositor(),
- mirror_window->layer());
+ aura::Env::GetInstance()
+ ->context_factory_private()
+ ->CreateReflector(
+ Shell::GetPrimaryRootWindow()->GetHost()->compositor(),
+ mirror_window->layer());
}
} else {
AshWindowTreeHost* ash_host =
@@ -284,7 +286,7 @@ void MirrorWindowController::Close(bool delay_host_deletion) {
mirroring_host_info_map_.clear();
if (reflector_) {
- aura::Env::GetInstance()->context_factory()->RemoveReflector(
+ aura::Env::GetInstance()->context_factory_private()->RemoveReflector(
reflector_.get());
reflector_.reset();
}
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698