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

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

Issue 304593002: Revert 272983 "Change Shell / ShellClient to ServiceProvider" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/mojo/services/native_viewport/native_viewport_service.cc
===================================================================
--- trunk/src/mojo/services/native_viewport/native_viewport_service.cc (revision 272983)
+++ trunk/src/mojo/services/native_viewport/native_viewport_service.cc (working copy)
@@ -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/service_provider/service_provider.mojom.h"
+#include "mojo/public/interfaces/shell/shell.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,11 +186,9 @@
MOJO_NATIVE_VIEWPORT_EXPORT mojo::Application*
- CreateNativeViewportService(
- mojo::shell::Context* context,
- mojo::ScopedMessagePipeHandle service_provider_handle) {
- mojo::Application* app = new mojo::Application(
- service_provider_handle.Pass());
+ CreateNativeViewportService(mojo::shell::Context* context,
+ mojo::ScopedMessagePipeHandle shell_handle) {
+ mojo::Application* app = new mojo::Application(shell_handle.Pass());
app->AddService<mojo::services::NativeViewportImpl>(context);
return app;
}

Powered by Google App Engine
This is Rietveld 408576698