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

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

Issue 672363002: Make skydb load examples/home.sky by default. (Closed) Base URL: git@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
Index: sky/tools/debugger/prompt/prompt.cc
diff --git a/sky/tools/debugger/prompt/prompt.cc b/sky/tools/debugger/prompt/prompt.cc
index 3b486045e6d9de4f6cb56057d794b72005721b1e..d411c82618f058ba524ac245a14879794f66cb95 100644
--- a/sky/tools/debugger/prompt/prompt.cc
+++ b/sky/tools/debugger/prompt/prompt.cc
@@ -45,13 +45,17 @@ class Prompt : public mojo::ApplicationDelegate {
app->ConnectToService("mojo:sky_viewer", &tracing_);
if (app->args().size() > 1)
url_ = app->args()[1];
+ else {
+ url_ = "https://raw.githubusercontent.com/domokit/mojo/master/sky/"
+ "examples/home.sky";
+ }
Hixie 2014/10/23 21:55:23 why curlies?
}
virtual bool ConfigureIncomingConnection(
mojo::ApplicationConnection* connection) override {
connection->ConnectToService(&debugger_);
- if (!url_.empty())
- Reload();
+ std::cout << "Loading " << url_ << std::endl;
+ Reload();
ScheduleWaitForInput();
return true;
}

Powered by Google App Engine
This is Rietveld 408576698