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

Unified Diff: services/ui/demo/mus_demo_internal.cc

Issue 2622103004: Mus Demo: Demonstrate external window mode (Closed)
Patch Set: Add description of internal VS external modes ; fix namespace comment Created 3 years, 10 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 | « services/ui/demo/mus_demo_internal.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/demo/mus_demo_internal.cc
diff --git a/services/ui/demo/mus_demo_internal.cc b/services/ui/demo/mus_demo_internal.cc
index 9f5eeaed3a8c281f00ae71d1702e30b7e18153ff..153ffbb0062bab18febe4ab77b1ddbd048338109 100644
--- a/services/ui/demo/mus_demo_internal.cc
+++ b/services/ui/demo/mus_demo_internal.cc
@@ -23,12 +23,12 @@ MusDemoInternal::MusDemoInternal() {}
MusDemoInternal::~MusDemoInternal() {}
void MusDemoInternal::OnStartImpl(
- std::unique_ptr<aura::WindowTreeClient>& window_tree_client,
- std::unique_ptr<WindowTreeData>& window_tree_data) {
- window_tree_client = base::MakeUnique<aura::WindowTreeClient>(
+ std::unique_ptr<aura::WindowTreeClient>* window_tree_client,
+ std::unique_ptr<WindowTreeData>* window_tree_data) {
+ *window_tree_client = base::MakeUnique<aura::WindowTreeClient>(
context()->connector(), this, this);
- window_tree_client->ConnectAsWindowManager();
- window_tree_data = base::MakeUnique<WindowTreeData>(kSquareSize);
+ window_tree_client->get()->ConnectAsWindowManager();
+ *window_tree_data = base::MakeUnique<WindowTreeData>(kSquareSize);
}
void MusDemoInternal::SetWindowManagerClient(
« no previous file with comments | « services/ui/demo/mus_demo_internal.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698