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

Unified Diff: mojo/services/native_viewport/native_viewport_service.cc

Issue 298653010: Change Shell / ShellClient to ServiceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Support content Mojo stuff Created 6 years, 7 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: mojo/services/native_viewport/native_viewport_service.cc
diff --git a/mojo/services/native_viewport/native_viewport_service.cc b/mojo/services/native_viewport/native_viewport_service.cc
index 30e37b71ea82100359de696ee3df7d683188a861..b9c5a8294bfc24aea39eb9a224fd3f370baeb2a6 100644
--- a/mojo/services/native_viewport/native_viewport_service.cc
+++ b/mojo/services/native_viewport/native_viewport_service.cc
@@ -9,7 +9,7 @@
#include "base/time/time.h"
#include "mojo/geometry/geometry_type_converters.h"
#include "mojo/public/cpp/bindings/allocation_scope.h"
-#include "mojo/public/interfaces/shell/shell.mojom.h"
+#include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
#include "mojo/services/gles2/command_buffer_impl.h"
#include "mojo/services/native_viewport/native_viewport.h"
#include "mojo/services/native_viewport/native_viewport.mojom.h"
@@ -186,9 +186,11 @@ class NativeViewportImpl
MOJO_NATIVE_VIEWPORT_EXPORT mojo::Application*
- CreateNativeViewportService(mojo::shell::Context* context,
- mojo::ScopedMessagePipeHandle shell_handle) {
- mojo::Application* app = new mojo::Application(shell_handle.Pass());
+ CreateNativeViewportService(
+ mojo::shell::Context* context,
+ mojo::ScopedMessagePipeHandle service_provider_handle) {
+ mojo::Application* app = new mojo::Application(
+ service_provider_handle.Pass());
app->AddService<mojo::services::NativeViewportImpl>(context);
return app;
}

Powered by Google App Engine
This is Rietveld 408576698