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

Side by Side Diff: mojo/shell/desktop/mojo_main.cc

Issue 93793009: Implement ServiceManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix review issues Created 7 years 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "mojo/shell/init.h" 9 #include "mojo/shell/init.h"
10 #include "mojo/shell/run.h" 10 #include "mojo/shell/run.h"
11 #include "ui/gl/gl_surface.h" 11 #include "ui/gl/gl_surface.h"
12 12
13 int main(int argc, char** argv) { 13 int main(int argc, char** argv) {
14 base::AtExitManager at_exit; 14 base::AtExitManager at_exit;
15 CommandLine::Init(argc, argv); 15 CommandLine::Init(argc, argv);
16 16
17 mojo::shell::InitializeLogging(); 17 mojo::shell::InitializeLogging();
18 18
19 gfx::GLSurface::InitializeOneOff(); 19 gfx::GLSurface::InitializeOneOff();
20 20
21 base::MessageLoop message_loop(base::MessageLoop::TYPE_UI); 21 base::MessageLoop message_loop;
22 mojo::shell::Context context; 22 mojo::shell::Context context;
23 23
24 message_loop.PostTask(FROM_HERE, base::Bind(mojo::shell::Run, 24 message_loop.PostTask(FROM_HERE, base::Bind(mojo::shell::Run,
25 &context)); 25 &context));
26 message_loop.Run(); 26 message_loop.Run();
27 27
28 return 0; 28 return 0;
29 } 29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698