diff options
author | scottmg@google.com <scottmg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-01 21:25:12 +0000 |
---|---|---|
committer | scottmg@google.com <scottmg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-01 21:25:12 +0000 |
commit | 56deedeafb9d4880280e33a4d35e769a4c119cf2 (patch) | |
tree | 54fc3c6b34e33dc4ade1c11c3355d39e52b1563c /ui/viewer/viewer_main.cc | |
parent | 9d68072cff1c7d2e94ea2d35026f5cdd0736a3de (diff) | |
download | chromium_src-56deedeafb9d4880280e33a4d35e769a4c119cf2.zip chromium_src-56deedeafb9d4880280e33a4d35e769a4c119cf2.tar.gz chromium_src-56deedeafb9d4880280e33a4d35e769a4c119cf2.tar.bz2 |
Listen in the browser for a connection from a metro viewer process.
Render to the surface it provides to us.
BUG=151718
Review URL: https://codereview.chromium.org/10984007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159559 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/viewer/viewer_main.cc')
-rw-r--r-- | ui/viewer/viewer_main.cc | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/ui/viewer/viewer_main.cc b/ui/viewer/viewer_main.cc deleted file mode 100644 index e49dcc0..0000000 --- a/ui/viewer/viewer_main.cc +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2012 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 "base/command_line.h" -#include "base/debug/debugger.h" -#include "base/message_loop.h" -#include "ui/compositor/test/compositor_test_support.h" -#include "ui/viewer/viewer_process.h" - -// Mainline routine for running as the viewer process. -int ViewerProcessMain() { - MessageLoop main_message_loop(MessageLoop::TYPE_UI); - ui::CompositorTestSupport::Initialize(); - - main_message_loop.set_thread_name("MainThread"); - CommandLine* command_line = CommandLine::ForCurrentProcess(); - - VLOG(1) << "Viewer process launched: " - << CommandLine::ForCurrentProcess()->GetCommandLineString(); - - base::PlatformThread::SetName("CrViewerMain"); - - // TODO(scottmg): Uniquize this process? - - ViewerProcess viewer_process; - if (viewer_process.Initialize(&main_message_loop, *command_line)) { - MessageLoopForUI::current()->Run(); - } else { - LOG(ERROR) << "Viewer process failed to initialize"; - } - viewer_process.Teardown(); - return 0; -} |