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

Side by Side Diff: chrome/browser/browser_main.cc

Issue 7042003: Revert 85732 (broke build) - Move SystemMonitor to base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/browser_main.h" 5 #include "chrome/browser/browser_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/allocator/allocator_shim.h" 11 #include "base/allocator/allocator_shim.h"
12 #include "base/at_exit.h" 12 #include "base/at_exit.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/debug/trace_event.h" 14 #include "base/debug/trace_event.h"
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/file_util.h" 16 #include "base/file_util.h"
17 #include "base/mac/scoped_nsautorelease_pool.h" 17 #include "base/mac/scoped_nsautorelease_pool.h"
18 #include "base/metrics/field_trial.h" 18 #include "base/metrics/field_trial.h"
19 #include "base/metrics/histogram.h" 19 #include "base/metrics/histogram.h"
20 #include "base/path_service.h" 20 #include "base/path_service.h"
21 #include "base/process_util.h" 21 #include "base/process_util.h"
22 #include "base/string_number_conversions.h" 22 #include "base/string_number_conversions.h"
23 #include "base/string_piece.h" 23 #include "base/string_piece.h"
24 #include "base/string_split.h" 24 #include "base/string_split.h"
25 #include "base/string_util.h" 25 #include "base/string_util.h"
26 #include "base/sys_string_conversions.h" 26 #include "base/sys_string_conversions.h"
27 #include "base/system_monitor/system_monitor.h"
28 #include "base/threading/platform_thread.h" 27 #include "base/threading/platform_thread.h"
29 #include "base/threading/thread_restrictions.h" 28 #include "base/threading/thread_restrictions.h"
30 #include "base/time.h" 29 #include "base/time.h"
31 #include "base/utf_string_conversions.h" 30 #include "base/utf_string_conversions.h"
32 #include "base/values.h" 31 #include "base/values.h"
33 #include "build/build_config.h" 32 #include "build/build_config.h"
34 #include "chrome/browser/about_flags.h" 33 #include "chrome/browser/about_flags.h"
35 #include "chrome/browser/browser_main_win.h" 34 #include "chrome/browser/browser_main_win.h"
36 #include "chrome/browser/browser_process.h" 35 #include "chrome/browser/browser_process.h"
37 #include "chrome/browser/browser_process_impl.h" 36 #include "chrome/browser/browser_process_impl.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 #include "net/http/http_stream_factory.h" 102 #include "net/http/http_stream_factory.h"
104 #include "net/socket/client_socket_pool_base.h" 103 #include "net/socket/client_socket_pool_base.h"
105 #include "net/socket/client_socket_pool_manager.h" 104 #include "net/socket/client_socket_pool_manager.h"
106 #include "net/socket/tcp_client_socket.h" 105 #include "net/socket/tcp_client_socket.h"
107 #include "net/spdy/spdy_session.h" 106 #include "net/spdy/spdy_session.h"
108 #include "net/spdy/spdy_session_pool.h" 107 #include "net/spdy/spdy_session_pool.h"
109 #include "net/url_request/url_request.h" 108 #include "net/url_request/url_request.h"
110 #include "net/url_request/url_request_throttler_manager.h" 109 #include "net/url_request/url_request_throttler_manager.h"
111 #include "ui/base/l10n/l10n_util.h" 110 #include "ui/base/l10n/l10n_util.h"
112 #include "ui/base/resource/resource_bundle.h" 111 #include "ui/base/resource/resource_bundle.h"
112 #include "ui/base/system_monitor/system_monitor.h"
113 #include "ui/gfx/gl/gl_implementation.h" 113 #include "ui/gfx/gl/gl_implementation.h"
114 #include "ui/gfx/gl/gl_switches.h" 114 #include "ui/gfx/gl/gl_switches.h"
115 115
116 #if defined(USE_LINUX_BREAKPAD) 116 #if defined(USE_LINUX_BREAKPAD)
117 #include "base/linux_util.h" 117 #include "base/linux_util.h"
118 #include "chrome/app/breakpad_linux.h" 118 #include "chrome/app/breakpad_linux.h"
119 #endif 119 #endif
120 120
121 #if defined(OS_POSIX) && !defined(OS_MACOSX) 121 #if defined(OS_POSIX) && !defined(OS_MACOSX)
122 #include <dbus/dbus-glib.h> 122 #include <dbus/dbus-glib.h>
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 } 520 }
521 521
522 // BrowserMainParts: |MainMessageLoopStart()| and related ---------------------- 522 // BrowserMainParts: |MainMessageLoopStart()| and related ----------------------
523 523
524 void BrowserMainParts::MainMessageLoopStart() { 524 void BrowserMainParts::MainMessageLoopStart() {
525 PreMainMessageLoopStart(); 525 PreMainMessageLoopStart();
526 526
527 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); 527 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI));
528 528
529 // TODO(viettrungluu): should these really go before setting the thread name? 529 // TODO(viettrungluu): should these really go before setting the thread name?
530 system_monitor_.reset(new base::SystemMonitor); 530 system_monitor_.reset(new ui::SystemMonitor);
531 hi_res_timer_manager_.reset(new HighResolutionTimerManager); 531 hi_res_timer_manager_.reset(new HighResolutionTimerManager);
532 network_change_notifier_.reset(net::NetworkChangeNotifier::Create()); 532 network_change_notifier_.reset(net::NetworkChangeNotifier::Create());
533 533
534 InitializeMainThread(); 534 InitializeMainThread();
535 535
536 PostMainMessageLoopStart(); 536 PostMainMessageLoopStart();
537 Profiling::MainMessageLoopStarted(); 537 Profiling::MainMessageLoopStarted();
538 } 538 }
539 539
540 void BrowserMainParts::InitializeMainThread() { 540 void BrowserMainParts::InitializeMainThread() {
(...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1941 #if defined(OS_CHROMEOS) 1941 #if defined(OS_CHROMEOS)
1942 // To be precise, logout (browser shutdown) is not yet done, but the 1942 // To be precise, logout (browser shutdown) is not yet done, but the
1943 // remaining work is negligible, hence we say LogoutDone here. 1943 // remaining work is negligible, hence we say LogoutDone here.
1944 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone", 1944 chromeos::BootTimesLoader::Get()->AddLogoutTimeMarker("LogoutDone",
1945 false); 1945 false);
1946 chromeos::BootTimesLoader::Get()->WriteLogoutTimes(); 1946 chromeos::BootTimesLoader::Get()->WriteLogoutTimes();
1947 #endif 1947 #endif
1948 TRACE_EVENT_END_ETW("BrowserMain", 0, 0); 1948 TRACE_EVENT_END_ETW("BrowserMain", 0, 0);
1949 return result_code; 1949 return result_code;
1950 } 1950 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.h ('k') | chrome/browser/extensions/extension_event_router_forwarder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698