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

Unified Diff: examples/content_handler_demo/content_handler_demo.cc

Issue 905583002: Pass the final URL an app was loaded from to the app in Initialize(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/content_handler_demo/content_handler_demo.cc
diff --git a/examples/content_handler_demo/content_handler_demo.cc b/examples/content_handler_demo/content_handler_demo.cc
index 8b17c69e1c1cd843b4c121933b81c0c4409416ef..3ac2578c0d102df7dd6586758f8407bf8551e16a 100644
--- a/examples/content_handler_demo/content_handler_demo.cc
+++ b/examples/content_handler_demo/content_handler_demo.cc
@@ -21,7 +21,9 @@ class PrintBodyApplication : public Application {
ScopedDataPipeConsumerHandle body)
: binding_(this, request.Pass()), body_(body.Pass()) {}
- virtual void Initialize(ShellPtr shell, Array<String> args) override {
+ virtual void Initialize(ShellPtr shell,
+ const mojo::String& url,
+ Array<String> args) override {
shell_ = shell.Pass();
}
virtual void RequestQuit() override {}

Powered by Google App Engine
This is Rietveld 408576698