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

Unified Diff: examples/recursive_content_handler/recursive_content_handler.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/recursive_content_handler/recursive_content_handler.cc
diff --git a/examples/recursive_content_handler/recursive_content_handler.cc b/examples/recursive_content_handler/recursive_content_handler.cc
index baa6f037d3db42d2423e5f87719b36cd2ad24c1b..42a73f8bbd73a944895f30ea43233f0dfaad53ac 100644
--- a/examples/recursive_content_handler/recursive_content_handler.cc
+++ b/examples/recursive_content_handler/recursive_content_handler.cc
@@ -31,10 +31,11 @@ class RecursiveContentHandler : public ApplicationDelegate,
// Overridden from ContentHandlerFactory::ManagedDelegate:
virtual scoped_ptr<ContentHandlerFactory::HandledApplicationHolder>
- CreateApplication(ShellPtr shell, URLResponsePtr response) override {
+ CreateApplication(InterfaceRequest<Application> application_request,
+ URLResponsePtr response) override {
LOG(INFO) << "RecursiveContentHandler called with url: " << response->url;
- return make_handled_factory_holder(
- new mojo::ApplicationImpl(new RecursiveContentHandler(), shell.Pass()));
+ return make_handled_factory_holder(new mojo::ApplicationImpl(
+ new RecursiveContentHandler(), application_request.Pass()));
}
ContentHandlerFactory content_handler_factory_;

Powered by Google App Engine
This is Rietveld 408576698