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

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

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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
« no previous file with comments | « ui/ozone/platform/cast/overlay_manager_cast.cc ('k') | ui/views/win/hwnd_message_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 5 #include <memory>
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/i18n/icu_util.h" 10 #include "base/i18n/icu_util.h"
(...skipping 28 matching lines...) Expand all
39 39
40 #if defined(OS_WIN) 40 #if defined(OS_WIN)
41 #include "ui/base/win/scoped_ole_initializer.h" 41 #include "ui/base/win/scoped_ole_initializer.h"
42 #include "ui/gfx/win/direct_write.h" 42 #include "ui/gfx/win/direct_write.h"
43 #endif 43 #endif
44 44
45 #if defined(USE_X11) 45 #if defined(USE_X11)
46 #include "ui/gfx/x/x11_connection.h" // nogncheck 46 #include "ui/gfx/x/x11_connection.h" // nogncheck
47 #endif 47 #endif
48 48
49 base::LazyInstance<base::TestDiscardableMemoryAllocator> 49 base::LazyInstance<base::TestDiscardableMemoryAllocator>::DestructorAtExit
50 g_discardable_memory_allocator = LAZY_INSTANCE_INITIALIZER; 50 g_discardable_memory_allocator = LAZY_INSTANCE_INITIALIZER;
51 51
52 int main(int argc, char** argv) { 52 int main(int argc, char** argv) {
53 #if defined(OS_WIN) 53 #if defined(OS_WIN)
54 ui::ScopedOleInitializer ole_initializer_; 54 ui::ScopedOleInitializer ole_initializer_;
55 #endif 55 #endif
56 56
57 base::CommandLine::Init(argc, argv); 57 base::CommandLine::Init(argc, argv);
58 58
59 base::AtExitManager at_exit; 59 base::AtExitManager at_exit;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 121 }
122 122
123 ui::ShutdownInputMethod(); 123 ui::ShutdownInputMethod();
124 124
125 #if defined(USE_AURA) 125 #if defined(USE_AURA)
126 env.reset(); 126 env.reset();
127 #endif 127 #endif
128 128
129 return 0; 129 return 0;
130 } 130 }
OLDNEW
« no previous file with comments | « ui/ozone/platform/cast/overlay_manager_cast.cc ('k') | ui/views/win/hwnd_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698