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

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

Issue 1675153002: ApplicationImpl->ShellConnection, mojom::Application->mojom::ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ci2
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 | « mojo/shell/test_package_manager.cc ('k') | no next file » | 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 d1df50a4cb840111c164b8d0c7e148bef03144a4..f34206e68ea165b60d065700879d45ad8f8d7189 100644
--- a/ui/views/mus/platform_test_helper_mus.cc
+++ b/ui/views/mus/platform_test_helper_mus.cc
@@ -6,8 +6,8 @@
#include "base/command_line.h"
#include "mojo/shell/background/background_shell.h"
-#include "mojo/shell/public/cpp/application_impl.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"
#include "url/gurl.h"
@@ -32,25 +32,25 @@ class PlatformTestHelperMus : public PlatformTestHelper {
background_shell_.reset(new mojo::shell::BackgroundShell);
background_shell_->Init();
shell_client_.reset(new DefaultShellClient);
- app_.reset(new mojo::ApplicationImpl(
+ shell_connection_.reset(new mojo::ShellConnection(
shell_client_.get(),
- background_shell_->CreateApplication(GURL("mojo://test-app"))));
- app_->WaitForInitialize();
+ background_shell_->CreateShellClientRequest(GURL("mojo://test-app"))));
+ shell_connection_->WaitForInitialize();
// ui/views/mus requires a WindowManager running, for now use the desktop
// one.
- app_->Connect("mojo:desktop_wm");
- WindowManagerConnection::Create(app_.get());
+ shell_connection_->Connect("mojo:desktop_wm");
+ WindowManagerConnection::Create(shell_connection_.get());
}
~PlatformTestHelperMus() override {
WindowManagerConnection::Reset();
// |app_| has a reference to us, destroy it while we are still valid.
- app_.reset();
+ shell_connection_.reset();
}
private:
scoped_ptr<mojo::shell::BackgroundShell> background_shell_;
- scoped_ptr<mojo::ApplicationImpl> app_;
+ scoped_ptr<mojo::ShellConnection> shell_connection_;
scoped_ptr<DefaultShellClient> shell_client_;
DISALLOW_COPY_AND_ASSIGN(PlatformTestHelperMus);
« no previous file with comments | « mojo/shell/test_package_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698