| 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;
|
| }
|
|
|
|
|