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

Side by Side Diff: content/shell/shell_browser_main_parts.cc

Issue 14335017: content: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_browser_main.cc ('k') | content/shell/shell_url_request_context_getter.cc » ('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 (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
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
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
OLDNEW
« no previous file with comments | « content/shell/shell_browser_main.cc ('k') | content/shell/shell_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698