Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: ui/viewer/viewer_main.cc

Issue 10872002: beginnings of metro viewer process (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/viewer/viewer_ipc_server.cc ('k') | ui/viewer/viewer_message_generator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/command_line.h"
6 #include "base/debug/debugger.h"
7 #include "base/message_loop.h"
8 #include "ui/compositor/test/compositor_test_support.h"
9 #include "ui/viewer/viewer_process.h"
10
11 // Mainline routine for running as the viewer process.
12 int ViewerProcessMain() {
13 MessageLoop main_message_loop(MessageLoop::TYPE_UI);
14 ui::CompositorTestSupport::Initialize();
15
16 main_message_loop.set_thread_name("MainThread");
17 CommandLine* command_line = CommandLine::ForCurrentProcess();
18
19 VLOG(1) << "Viewer process launched: "
20 << CommandLine::ForCurrentProcess()->GetCommandLineString();
21
22 base::PlatformThread::SetName("CrViewerMain");
23
24 // TODO(scottmg): Uniquize this process?
25
26 ViewerProcess viewer_process;
27 if (viewer_process.Initialize(&main_message_loop, *command_line)) {
28 MessageLoopForUI::current()->Run();
29 } else {
30 LOG(ERROR) << "Viewer process failed to initialize";
31 }
32 viewer_process.Teardown();
33 return 0;
34 }
OLDNEW
« no previous file with comments | « ui/viewer/viewer_ipc_server.cc ('k') | ui/viewer/viewer_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698