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

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

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
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 7fc3b2286ab3935ba38c6ab119fe6f8452c4e5ae..c4faba14babcb72e5bc40d64655bae10f7ebc4ba 100644
--- a/ui/views/mus/platform_test_helper_mus.cc
+++ b/ui/views/mus/platform_test_helper_mus.cc
@@ -5,8 +5,8 @@
#include "ui/views/test/platform_test_helper.h"
#include "base/path_service.h"
-#include "mojo/shell/public/cpp/application_impl.h"
#include "mojo/shell/public/cpp/application_test_base.h"
+#include "mojo/shell/public/cpp/shell.h"
#include "ui/aura/env.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_paths.h"
@@ -31,9 +31,8 @@ class PlatformTestHelperMus : public PlatformTestHelper {
mojo_test_helper_.reset(new mojo::test::TestHelper(nullptr));
// ui/views/mus requires a WindowManager running, for now use the desktop
// one.
- mojo_test_helper_->application_impl()->ConnectToApplication(
- "mojo:desktop_wm");
- WindowManagerConnection::Create(mojo_test_helper_->application_impl());
+ mojo_test_helper_->shell()->ConnectToApplication("mojo:desktop_wm");
+ WindowManagerConnection::Create(mojo_test_helper_->shell());
}
~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