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

Side by Side Diff: ui/views/examples/examples_main.cc

Issue 819223002: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 12 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/command_line.h" 6 #include "base/command_line.h"
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/i18n/icu_util.h" 8 #include "base/i18n/icu_util.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 24 matching lines...) Expand all
35 35
36 #if defined(USE_X11) 36 #if defined(USE_X11)
37 #include "ui/gfx/x/x11_connection.h" 37 #include "ui/gfx/x/x11_connection.h"
38 #endif 38 #endif
39 39
40 int main(int argc, char** argv) { 40 int main(int argc, char** argv) {
41 #if defined(OS_WIN) 41 #if defined(OS_WIN)
42 ui::ScopedOleInitializer ole_initializer_; 42 ui::ScopedOleInitializer ole_initializer_;
43 #endif 43 #endif
44 44
45 CommandLine::Init(argc, argv); 45 base::CommandLine::Init(argc, argv);
46 46
47 base::AtExitManager at_exit; 47 base::AtExitManager at_exit;
48 48
49 #if defined(USE_X11) 49 #if defined(USE_X11)
50 // This demo uses InProcessContextFactory which uses X on a separate Gpu 50 // This demo uses InProcessContextFactory which uses X on a separate Gpu
51 // thread. 51 // thread.
52 gfx::InitializeThreadedX11(); 52 gfx::InitializeThreadedX11();
53 #endif 53 #endif
54 54
55 gfx::GLSurface::InitializeOneOff(); 55 gfx::GLSurface::InitializeOneOff();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 ui::ShutdownInputMethod(); 103 ui::ShutdownInputMethod();
104 104
105 #if defined(USE_AURA) 105 #if defined(USE_AURA)
106 aura::Env::DeleteInstance(); 106 aura::Env::DeleteInstance();
107 #endif 107 #endif
108 108
109 return 0; 109 return 0;
110 } 110 }
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/textfield_unittest.cc ('k') | ui/views/touchui/touch_selection_controller_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698