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

Unified Diff: mojo/public/cpp/application/lib/application_impl.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: o 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: mojo/public/cpp/application/lib/application_impl.cc
diff --git a/mojo/public/cpp/application/lib/application_impl.cc b/mojo/public/cpp/application/lib/application_impl.cc
index c66dbb50a343fc86c3ca43020222669b1c736623..1fbfcac69af6decc5266f57d30bbe0b752577277 100644
--- a/mojo/public/cpp/application/lib/application_impl.cc
+++ b/mojo/public/cpp/application/lib/application_impl.cc
@@ -71,10 +71,13 @@ ApplicationConnection* ApplicationImpl::ConnectToApplication(
return registry;
}
-void ApplicationImpl::Initialize(ShellPtr shell, Array<String> args) {
+void ApplicationImpl::Initialize(ShellPtr shell,
+ Array<String> args,
+ const mojo::String& url) {
shell_ = shell.Pass();
shell_watch_ = new ShellPtrWatcher(this);
shell_.set_error_handler(shell_watch_);
+ url_ = url;
args_ = args.To<std::vector<std::string>>();
delegate_->Initialize(this);
}
« no previous file with comments | « mojo/public/cpp/application/application_impl.h ('k') | mojo/public/cpp/application/lib/application_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698