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

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

Issue 658113004: Teach tools/skydb how to take a URL as a parameter. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: std library, ouch. Created 6 years, 2 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.cc ('k') | sky/tools/skydb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/debugger/prompt/prompt.cc
diff --git a/sky/tools/debugger/prompt/prompt.cc b/sky/tools/debugger/prompt/prompt.cc
index 60d6733802f31c156be09225ce2f4818fcbf6e59..3b486045e6d9de4f6cb56057d794b72005721b1e 100644
--- a/sky/tools/debugger/prompt/prompt.cc
+++ b/sky/tools/debugger/prompt/prompt.cc
@@ -43,12 +43,16 @@ class Prompt : public mojo::ApplicationDelegate {
// Overridden from mojo::ApplicationDelegate:
virtual void Initialize(mojo::ApplicationImpl* app) override {
app->ConnectToService("mojo:sky_viewer", &tracing_);
- ScheduleWaitForInput();
+ if (app->args().size() > 1)
+ url_ = app->args()[1];
}
virtual bool ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) override {
connection->ConnectToService(&debugger_);
+ if (!url_.empty())
+ Reload();
+ ScheduleWaitForInput();
return true;
}
« no previous file with comments | « sky/tools/debugger/debugger.cc ('k') | sky/tools/skydb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698