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

Unified Diff: trunk/src/mojo/examples/sample_view_manager_app/sample_view_manager_app.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
« no previous file with comments | « trunk/src/mojo/examples/sample_app/sample_app.cc ('k') | trunk/src/mojo/mojo.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/mojo/examples/sample_view_manager_app/sample_view_manager_app.cc
===================================================================
--- trunk/src/mojo/examples/sample_view_manager_app/sample_view_manager_app.cc (revision 272983)
+++ trunk/src/mojo/examples/sample_view_manager_app/sample_view_manager_app.cc (working copy)
@@ -6,8 +6,8 @@
#include "base/bind.h"
#include "base/command_line.h"
#include "base/message_loop/message_loop.h"
-#include "mojo/public/cpp/application/application.h"
#include "mojo/public/cpp/environment/environment.h"
+#include "mojo/public/cpp/shell/application.h"
#include "mojo/public/cpp/system/core.h"
#include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/utility/run_loop.h"
@@ -31,9 +31,9 @@
class SampleApp : public Application {
public:
- explicit SampleApp(MojoHandle service_provider_handle)
- : Application(service_provider_handle) {
- view_manager_.reset(new view_manager::ViewManager(service_provider()));
+ explicit SampleApp(MojoHandle shell_handle)
+ : Application(shell_handle) {
+ view_manager_.reset(new view_manager::ViewManager(shell()));
view_manager_->Init();
view_manager::ViewTreeNode* node1 =
view_manager::ViewTreeNode::Create(view_manager_.get());
@@ -67,10 +67,10 @@
} // namespace mojo
extern "C" SAMPLE_APP_EXPORT MojoResult CDECL MojoMain(
- MojoHandle service_provider_handle) {
+ MojoHandle shell_handle) {
base::MessageLoop loop;
- mojo::examples::SampleApp app(service_provider_handle);
+ mojo::examples::SampleApp app(shell_handle);
loop.Run();
return MOJO_RESULT_OK;
}
« no previous file with comments | « trunk/src/mojo/examples/sample_app/sample_app.cc ('k') | trunk/src/mojo/mojo.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698