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 "chrome/browser/browser_process_impl.h" | 5 #include "chrome/browser/browser_process_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 : created_metrics_service_(false), | 154 : created_metrics_service_(false), |
155 created_watchdog_thread_(false), | 155 created_watchdog_thread_(false), |
156 created_browser_policy_connector_(false), | 156 created_browser_policy_connector_(false), |
157 created_profile_manager_(false), | 157 created_profile_manager_(false), |
158 created_local_state_(false), | 158 created_local_state_(false), |
159 created_icon_manager_(false), | 159 created_icon_manager_(false), |
160 created_notification_ui_manager_(false), | 160 created_notification_ui_manager_(false), |
161 created_safe_browsing_service_(false), | 161 created_safe_browsing_service_(false), |
162 module_ref_count_(0), | 162 module_ref_count_(0), |
163 did_start_(false), | 163 did_start_(false), |
164 checked_for_new_frames_(false), | |
165 using_new_frames_(false), | |
166 render_widget_snapshot_taker_(new RenderWidgetSnapshotTaker), | 164 render_widget_snapshot_taker_(new RenderWidgetSnapshotTaker), |
167 download_status_updater_(new DownloadStatusUpdater), | 165 download_status_updater_(new DownloadStatusUpdater), |
168 local_state_task_runner_(local_state_task_runner) { | 166 local_state_task_runner_(local_state_task_runner) { |
169 g_browser_process = this; | 167 g_browser_process = this; |
170 platform_part_.reset(new BrowserProcessPlatformPart()); | 168 platform_part_.reset(new BrowserProcessPlatformPart()); |
171 | 169 |
172 #if defined(ENABLE_PRINTING) | 170 #if defined(ENABLE_PRINTING) |
173 // Must be created after the NotificationService. | 171 // Must be created after the NotificationService. |
174 print_job_manager_.reset(new printing::PrintJobManager); | 172 print_job_manager_.reset(new printing::PrintJobManager); |
175 #endif | 173 #endif |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 } | 1116 } |
1119 | 1117 |
1120 void BrowserProcessImpl::OnAutoupdateTimer() { | 1118 void BrowserProcessImpl::OnAutoupdateTimer() { |
1121 if (CanAutorestartForUpdate()) { | 1119 if (CanAutorestartForUpdate()) { |
1122 DLOG(WARNING) << "Detected update. Restarting browser."; | 1120 DLOG(WARNING) << "Detected update. Restarting browser."; |
1123 RestartBackgroundInstance(); | 1121 RestartBackgroundInstance(); |
1124 } | 1122 } |
1125 } | 1123 } |
1126 | 1124 |
1127 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1125 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |