| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |