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

Unified Diff: examples/recipes/recipe_handler/recipe_handler_main.cc

Issue 868463008: Remove Client relationship between mojo.Shell/mojo.Application (Closed) Base URL: git@github.com:domokit/mojo.git@app_impl_init
Patch Set: fix android Created 5 years, 11 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: examples/recipes/recipe_handler/recipe_handler_main.cc
diff --git a/examples/recipes/recipe_handler/recipe_handler_main.cc b/examples/recipes/recipe_handler/recipe_handler_main.cc
index f16f8efd65a9789979dedd3235704fd20dfa655b..89d8d021a0f9dadb01c162513551c6f19b8de6a2 100644
--- a/examples/recipes/recipe_handler/recipe_handler_main.cc
+++ b/examples/recipes/recipe_handler/recipe_handler_main.cc
@@ -37,8 +37,9 @@ class RecipeHandlerApp : public mojo::ApplicationDelegate,
// Overridden from ContentHandlerFactory::ManagedDelegate:
scoped_ptr<mojo::ContentHandlerFactory::HandledApplicationHolder>
- CreateApplication(mojo::ShellPtr shell,
- mojo::URLResponsePtr response) override {
+ CreateApplication(
+ mojo::InterfaceRequest<mojo::Application> application_request,
+ mojo::URLResponsePtr response) override {
std::string recipe_string;
if (!mojo::common::BlockingCopyToString(response->body.Pass(),
&recipe_string)) {
@@ -64,7 +65,7 @@ class RecipeHandlerApp : public mojo::ApplicationDelegate,
return nullptr;
return make_handled_factory_holder(
- new mojo::ApplicationImpl(recipe, shell.Pass()));
+ new mojo::ApplicationImpl(recipe, application_request.Pass()));
}
mojo::ContentHandlerFactory content_handler_factory_;

Powered by Google App Engine
This is Rietveld 408576698