Index: sky/shell/linux/main.cc |
diff --git a/sky/shell/linux/main.cc b/sky/shell/linux/main.cc |
index a6b021bd7b18df11ea87886e56588a3f5d77e0c1..56fd84f5ae306e3510adf74ae1182c65802ac9e0 100644 |
--- a/sky/shell/linux/main.cc |
+++ b/sky/shell/linux/main.cc |
@@ -17,6 +17,9 @@ |
namespace sky { |
namespace shell { |
+const char kMain[] = "main"; |
+const char kPackageRoot[] = "package-root"; |
+ |
void Init() { |
Shell::Init(make_scoped_ptr(new ServiceProviderContext( |
base::MessageLoop::current()->task_runner()))); |
@@ -27,8 +30,12 @@ void Init() { |
ViewportObserverPtr viewport_observer; |
shell_view->view()->ConnectToViewportObserver(GetProxy(&viewport_observer)); |
- // TODO(abarth): At this point we should load some content into the view. |
- // viewport_observer->LoadURL("https://domokit.github.io/home.dart"); |
+ base::CommandLine& command_line = *base::CommandLine::ForCurrentProcess(); |
+ |
+ std::string main = command_line.GetSwitchValueASCII(kMain); |
+ std::string package_root = command_line.GetSwitchValueASCII(kPackageRoot); |
+ |
+ viewport_observer->RunFromFile(main, package_root); |
} |
} // namespace shell |