OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/thread_task_runner_handle.h" | |
11 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
| 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "blimp/client/app/blimp_startup.h" | 12 #include "blimp/client/app/blimp_startup.h" |
13 #include "blimp/client/app/linux/blimp_client_session_linux.h" | 13 #include "blimp/client/app/linux/blimp_client_session_linux.h" |
14 #include "blimp/client/feature/navigation_feature.h" | 14 #include "blimp/client/feature/navigation_feature.h" |
15 #include "blimp/client/feature/tab_control_feature.h" | 15 #include "blimp/client/feature/tab_control_feature.h" |
16 #include "blimp/client/session/assignment_source.h" | 16 #include "blimp/client/session/assignment_source.h" |
17 #include "ui/gfx/x/x11_connection.h" | 17 #include "ui/gfx/x/x11_connection.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 const char kDummyLoginToken[] = ""; | 20 const char kDummyLoginToken[] = ""; |
21 const char kDefaultUrl[] = "https://www.google.com"; | 21 const char kDefaultUrl[] = "https://www.google.com"; |
(...skipping 14 matching lines...) Expand all Loading... |
36 session.Connect(kDummyLoginToken); | 36 session.Connect(kDummyLoginToken); |
37 | 37 |
38 // If there is a non-switch argument to the command line, load that url. | 38 // If there is a non-switch argument to the command line, load that url. |
39 base::CommandLine::StringVector args = | 39 base::CommandLine::StringVector args = |
40 base::CommandLine::ForCurrentProcess()->GetArgs(); | 40 base::CommandLine::ForCurrentProcess()->GetArgs(); |
41 std::string url = args.size() > 0 ? args[0] : kDefaultUrl; | 41 std::string url = args.size() > 0 ? args[0] : kDefaultUrl; |
42 session.GetNavigationFeature()->NavigateToUrlText(kDummyTabId, url); | 42 session.GetNavigationFeature()->NavigateToUrlText(kDummyTabId, url); |
43 | 43 |
44 base::RunLoop().Run(); | 44 base::RunLoop().Run(); |
45 } | 45 } |
OLD | NEW |