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

Unified Diff: ui/views/mus/platform_test_helper_mus.cc

Issue 1725353003: Eliminate mojo::Shell client lib class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@15connector
Patch Set: . Created 4 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 | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/mus/platform_window_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/platform_test_helper_mus.cc
diff --git a/ui/views/mus/platform_test_helper_mus.cc b/ui/views/mus/platform_test_helper_mus.cc
index 918c550ab39c2b3a02c5a49b53ac7b76543f6d9d..ba6869cf93bd4f22cf091d1fce62c4210ec9f146 100644
--- a/ui/views/mus/platform_test_helper_mus.cc
+++ b/ui/views/mus/platform_test_helper_mus.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "mojo/shell/background/background_shell.h"
#include "mojo/shell/background/tests/test_application_catalog_store.h"
+#include "mojo/shell/public/cpp/connector.h"
#include "mojo/shell/public/cpp/shell_client.h"
#include "mojo/shell/public/cpp/shell_connection.h"
#include "ui/views/mus/window_manager_connection.h"
@@ -52,9 +53,9 @@ class PlatformTestHelperMus : public PlatformTestHelper {
shell_connection_->WaitForInitialize();
// ui/views/mus requires a WindowManager running, for now use the desktop
// one.
- mojo::Shell* shell = shell_connection_.get();
- shell->Connect("mojo:desktop_wm");
- WindowManagerConnection::Create(shell_connection_.get());
+ mojo::Connector* connector = shell_connection_->connector();
+ connector->Connect("mojo:desktop_wm");
+ WindowManagerConnection::Create(connector);
}
~PlatformTestHelperMus() override {
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/mus/platform_window_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698