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

Unified Diff: content/renderer/mus/render_widget_window_tree_client_factory.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
Index: content/renderer/mus/render_widget_window_tree_client_factory.cc
diff --git a/content/renderer/mus/render_widget_window_tree_client_factory.cc b/content/renderer/mus/render_widget_window_tree_client_factory.cc
index f12f496abc178a153bd834a6a247a0ed6f8adedd..ef56edd1be5ddd10bc8fa4a5665ac2064db50596 100644
--- a/content/renderer/mus/render_widget_window_tree_client_factory.cc
+++ b/content/renderer/mus/render_widget_window_tree_client_factory.cc
@@ -15,7 +15,7 @@
#include "mojo/public/cpp/bindings/binding_set.h"
#include "services/shell/public/cpp/connection.h"
#include "services/shell/public/cpp/interface_factory.h"
-#include "services/shell/public/cpp/shell_client.h"
+#include "services/shell/public/cpp/service.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
#include "url/gurl.h"
@@ -26,7 +26,7 @@ namespace {
// This object's lifetime is managed by MojoShellConnection because it's a
// registered with it.
class RenderWidgetWindowTreeClientFactoryImpl
- : public shell::ShellClient,
+ : public shell::Service,
public shell::InterfaceFactory<
mojom::RenderWidgetWindowTreeClientFactory>,
public mojom::RenderWidgetWindowTreeClientFactory {
@@ -38,8 +38,8 @@ class RenderWidgetWindowTreeClientFactoryImpl
~RenderWidgetWindowTreeClientFactoryImpl() override {}
private:
- // shell::ShellClient implementation:
- bool AcceptConnection(shell::Connection* connection) override {
+ // shell::Service implementation:
+ bool OnConnect(shell::Connection* connection) override {
connection->AddInterface<mojom::RenderWidgetWindowTreeClientFactory>(this);
return true;
}
@@ -68,7 +68,7 @@ class RenderWidgetWindowTreeClientFactoryImpl
} // namespace
void CreateRenderWidgetWindowTreeClientFactory() {
- MojoShellConnection::GetForProcess()->AddEmbeddedShellClient(
+ MojoShellConnection::GetForProcess()->MergeService(
base::WrapUnique(new RenderWidgetWindowTreeClientFactoryImpl));
}
« no previous file with comments | « content/public/utility/content_utility_client.h ('k') | content/shell/utility/shell_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698