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

Unified Diff: mojo/public/cpp/application/lib/application_test_base.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
« no previous file with comments | « mojo/public/cpp/application/lib/application_impl.cc ('k') | mojo/public/dart/src/application.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/application/lib/application_test_base.cc
diff --git a/mojo/public/cpp/application/lib/application_test_base.cc b/mojo/public/cpp/application/lib/application_test_base.cc
index ba6dd3f0ca0e7ae7d6357b3d62f1729e34ad5282..d4e002f74ffcc66de774d7c8ccbe4085e0115463 100644
--- a/mojo/public/cpp/application/lib/application_test_base.cc
+++ b/mojo/public/cpp/application/lib/application_test_base.cc
@@ -47,7 +47,9 @@ class ShellAndArgumentGrabber : public Application {
private:
// Application implementation.
- void Initialize(ShellPtr shell, Array<String> args) override {
+ void Initialize(ShellPtr shell,
+ Array<String> args,
+ const mojo::String& url) override {
*args_ = args.Pass();
g_application_request = binding_.Unbind();
g_shell = shell.Pass();
@@ -137,7 +139,7 @@ void ApplicationTestBase::SetUp() {
g_application_request.Pass());
// Fake application initialization with the given command line arguments.
- application_impl_->Initialize(g_shell.Pass(), g_args.Clone());
+ application_impl_->Initialize(g_shell.Pass(), g_args.Clone(), "");
}
void ApplicationTestBase::TearDown() {
« no previous file with comments | « mojo/public/cpp/application/lib/application_impl.cc ('k') | mojo/public/dart/src/application.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698