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

Unified Diff: trunk/src/mojo/examples/launcher/launcher.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/examples/launcher/launcher.cc
===================================================================
--- trunk/src/mojo/examples/launcher/launcher.cc (revision 272983)
+++ trunk/src/mojo/examples/launcher/launcher.cc (working copy)
@@ -15,11 +15,11 @@
#include "mojo/aura/screen_mojo.h"
#include "mojo/aura/window_tree_host_mojo.h"
#include "mojo/examples/launcher/launcher.mojom.h"
-#include "mojo/public/cpp/application/application.h"
#include "mojo/public/cpp/bindings/allocation_scope.h"
#include "mojo/public/cpp/gles2/gles2.h"
+#include "mojo/public/cpp/shell/application.h"
#include "mojo/public/cpp/system/core.h"
-#include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
+#include "mojo/public/interfaces/shell/shell.mojom.h"
#include "mojo/services/native_viewport/native_viewport.mojom.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/default_capture_client.h"
@@ -266,7 +266,7 @@
} // namespace mojo
extern "C" LAUNCHER_EXPORT MojoResult CDECL MojoMain(
- MojoHandle service_provider_handle) {
+ MojoHandle shell_handle) {
base::CommandLine::Init(0, NULL);
base::AtExitManager at_exit;
base::i18n::InitializeICU();
@@ -285,7 +285,7 @@
// Aura that doesn't define platform-specific stuff.
aura::Env::CreateInstance(true);
- mojo::Application app(service_provider_handle);
+ mojo::Application app(shell_handle);
app.AddService<mojo::examples::LauncherImpl>(&app);
loop.Run();

Powered by Google App Engine
This is Rietveld 408576698