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

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: 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..3c4e7fd3609e1e76f404d7281ea3e4e5f79c47da 100644
--- a/sky/tools/debugger/prompt/prompt.cc
+++ b/sky/tools/debugger/prompt/prompt.cc
@@ -43,12 +43,19 @@ 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().empty()) {
+ url_ = app->args()[1];
abarth-chromium 2014/10/23 20:34:41 Should we check the number of arguments?
+ std::cout << url_ << std::endl;
+ }
}
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