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

Unified Diff: sky/tools/debugger/debugger.cc

Issue 875183002: Make it possible to pass a default url to sky_debugger (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « sky/tools/debugger/debugger.h ('k') | sky/tools/debugger/prompt/prompt.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/debugger/debugger.cc
diff --git a/sky/tools/debugger/debugger.cc b/sky/tools/debugger/debugger.cc
index c540b15f937d4bcc2aebd9efa29e7f1d0713ba02..1bf43e42879a9dd4b1dc44fa6b903048a05a955d 100644
--- a/sky/tools/debugger/debugger.cc
+++ b/sky/tools/debugger/debugger.cc
@@ -28,12 +28,19 @@ base::WeakPtr<SkyDebugger> SkyDebugger::GetWeakPtr() {
void SkyDebugger::Initialize(mojo::ApplicationImpl* app) {
window_manager_app_->Initialize(app);
app->ConnectToApplication("mojo:sky_debugger_prompt");
+
+ // Format: --args-for="app_url default_url"
+ if (app->args().size() > 1)
+ default_url_ = app->args()[1];
}
bool SkyDebugger::ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) {
window_manager_app_->ConfigureIncomingConnection(connection);
connection->AddService(this);
+
+ if (!default_url_.empty())
+ NavigateToURL(default_url_); // Schedule a navigation in the new embedding.
return true;
}
« no previous file with comments | « sky/tools/debugger/debugger.h ('k') | sky/tools/debugger/prompt/prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698