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

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

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . Created 4 years, 5 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/user/user_shell_client.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/views_mus_test_suite.cc
diff --git a/ui/views/mus/views_mus_test_suite.cc b/ui/views/mus/views_mus_test_suite.cc
index b76a026673459e74d79950efc43cc566a0d507db..5446606e6ce1494e5beb5d2e74349db0050f129f 100644
--- a/ui/views/mus/views_mus_test_suite.cc
+++ b/ui/views/mus/views_mus_test_suite.cc
@@ -14,7 +14,7 @@
#include "base/threading/thread.h"
#include "services/shell/background/background_shell.h"
#include "services/shell/public/cpp/connector.h"
-#include "services/shell/public/cpp/shell_client.h"
+#include "services/shell/public/cpp/service.h"
#include "services/shell/public/cpp/shell_connection.h"
#include "services/ui/common/gpu_service.h"
#include "services/ui/common/switches.h"
@@ -32,13 +32,13 @@ void EnsureCommandLineSwitch(const std::string& name) {
cmd_line->AppendSwitch(name);
}
-class DefaultShellClient : public shell::ShellClient {
+class DefaultService : public shell::Service {
public:
- DefaultShellClient() {}
- ~DefaultShellClient() override {}
+ DefaultService() {}
+ ~DefaultService() override {}
private:
- DISALLOW_COPY_AND_ASSIGN(DefaultShellClient);
+ DISALLOW_COPY_AND_ASSIGN(DefaultService);
};
class PlatformTestHelperMus : public PlatformTestHelper {
@@ -118,10 +118,10 @@ class ShellConnection {
void SetUpConnections(base::WaitableEvent* wait) {
background_shell_.reset(new shell::BackgroundShell);
background_shell_->Init(nullptr);
- shell_client_.reset(new DefaultShellClient);
+ service_.reset(new DefaultService);
shell_connection_.reset(new shell::ShellConnection(
- shell_client_.get(),
- background_shell_->CreateShellClientRequest(GetTestName())));
+ service_.get(),
+ background_shell_->CreateServiceRequest(GetTestName())));
// ui/views/mus requires a WindowManager running, so launch test_wm.
shell::Connector* connector = shell_connection_->connector();
@@ -148,7 +148,7 @@ class ShellConnection {
base::Thread thread_;
std::unique_ptr<shell::BackgroundShell> background_shell_;
std::unique_ptr<shell::ShellConnection> shell_connection_;
- std::unique_ptr<DefaultShellClient> shell_client_;
+ std::unique_ptr<DefaultService> service_;
std::unique_ptr<shell::Connector> shell_connector_;
shell::Identity shell_identity_;
« no previous file with comments | « services/user/user_shell_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698