OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "content/shell/shell_browser_main_parts.h" | 5 #include "content/shell/shell_browser_main_parts.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.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/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 #if !defined(OS_MACOSX) | 84 #if !defined(OS_MACOSX) |
85 void ShellBrowserMainParts::PreMainMessageLoopStart() { | 85 void ShellBrowserMainParts::PreMainMessageLoopStart() { |
86 #if defined(USE_AURA) && defined(USE_X11) | 86 #if defined(USE_AURA) && defined(USE_X11) |
87 ui::TouchFactory::SetTouchDeviceListFromCommandLine(); | 87 ui::TouchFactory::SetTouchDeviceListFromCommandLine(); |
88 #endif | 88 #endif |
89 } | 89 } |
90 #endif | 90 #endif |
91 | 91 |
92 void ShellBrowserMainParts::PostMainMessageLoopStart() { | 92 void ShellBrowserMainParts::PostMainMessageLoopStart() { |
93 #if defined(OS_ANDROID) | 93 #if defined(OS_ANDROID) |
94 MessageLoopForUI::current()->Start(); | 94 base::MessageLoopForUI::current()->Start(); |
95 #endif | 95 #endif |
96 } | 96 } |
97 | 97 |
98 void ShellBrowserMainParts::PreEarlyInitialization() { | 98 void ShellBrowserMainParts::PreEarlyInitialization() { |
99 #if defined(OS_ANDROID) | 99 #if defined(OS_ANDROID) |
100 net::NetworkChangeNotifier::SetFactory( | 100 net::NetworkChangeNotifier::SetFactory( |
101 new net::NetworkChangeNotifierFactoryAndroid()); | 101 new net::NetworkChangeNotifierFactoryAndroid()); |
102 | 102 |
103 CommandLine::ForCurrentProcess()->AppendSwitch( | 103 CommandLine::ForCurrentProcess()->AppendSwitch( |
104 cc::switches::kCompositeToMailbox); | 104 cc::switches::kCompositeToMailbox); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 #if defined(USE_AURA) | 137 #if defined(USE_AURA) |
138 Shell::PlatformExit(); | 138 Shell::PlatformExit(); |
139 #endif | 139 #endif |
140 if (devtools_delegate_) | 140 if (devtools_delegate_) |
141 devtools_delegate_->Stop(); | 141 devtools_delegate_->Stop(); |
142 browser_context_.reset(); | 142 browser_context_.reset(); |
143 off_the_record_browser_context_.reset(); | 143 off_the_record_browser_context_.reset(); |
144 } | 144 } |
145 | 145 |
146 } // namespace | 146 } // namespace |
OLD | NEW |