| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "components/exo/wayland/clients/simple.h" |
| |
| #include <limits> |
| |
| #include "base/at_exit.h" |
| #include "base/command_line.h" |
| #include "base/message_loop/message_loop.h" |
| #include "components/exo/wayland/clients/simple.h" |
| |
| int main(int argc, char* argv[]) { |
| base::AtExitManager exit_manager; |
| base::CommandLine::Init(argc, argv); |
| base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| exo::wayland::clients::ClientBase::InitParams params; |
| if (!params.FromCommandLine(*command_line)) |
| return 1; |
| |
| base::MessageLoopForUI message_loop; |
| exo::wayland::clients::Simple client; |
| if (!client.Init(params)) |
| return 1; |
| |
| client.Run(std::numeric_limits<int>::max()); |
| |
| return 0; |
| } |