| 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 10 matching lines...) Expand all Loading... |
| 21 #include "base/prefs/pref_registry_simple.h" | 21 #include "base/prefs/pref_registry_simple.h" |
| 22 #include "base/prefs/pref_service.h" | 22 #include "base/prefs/pref_service.h" |
| 23 #include "base/synchronization/waitable_event.h" | 23 #include "base/synchronization/waitable_event.h" |
| 24 #include "base/threading/thread.h" | 24 #include "base/threading/thread.h" |
| 25 #include "base/threading/thread_restrictions.h" | 25 #include "base/threading/thread_restrictions.h" |
| 26 #include "base/time/default_tick_clock.h" | 26 #include "base/time/default_tick_clock.h" |
| 27 #include "chrome/browser/background/background_mode_manager.h" | 27 #include "chrome/browser/background/background_mode_manager.h" |
| 28 #include "chrome/browser/chrome_browser_main.h" | 28 #include "chrome/browser/chrome_browser_main.h" |
| 29 #include "chrome/browser/chrome_content_browser_client.h" | 29 #include "chrome/browser/chrome_content_browser_client.h" |
| 30 #include "chrome/browser/chrome_notification_types.h" | 30 #include "chrome/browser/chrome_notification_types.h" |
| 31 #include "chrome/browser/component_updater/component_updater_configurator.h" | 31 #include "chrome/browser/component_updater/chrome_component_updater_configurator
.h" |
| 32 #include "chrome/browser/component_updater/component_updater_service.h" | |
| 33 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" | 32 #include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h" |
| 34 #include "chrome/browser/defaults.h" | 33 #include "chrome/browser/defaults.h" |
| 35 #include "chrome/browser/devtools/remote_debugging_server.h" | 34 #include "chrome/browser/devtools/remote_debugging_server.h" |
| 36 #include "chrome/browser/download/download_request_limiter.h" | 35 #include "chrome/browser/download/download_request_limiter.h" |
| 37 #include "chrome/browser/download/download_status_updater.h" | 36 #include "chrome/browser/download/download_status_updater.h" |
| 38 #include "chrome/browser/first_run/upgrade_util.h" | 37 #include "chrome/browser/first_run/upgrade_util.h" |
| 39 #include "chrome/browser/gpu/gl_string_manager.h" | 38 #include "chrome/browser/gpu/gl_string_manager.h" |
| 40 #include "chrome/browser/gpu/gpu_mode_manager.h" | 39 #include "chrome/browser/gpu/gpu_mode_manager.h" |
| 41 #include "chrome/browser/icon_manager.h" | 40 #include "chrome/browser/icon_manager.h" |
| 42 #include "chrome/browser/idle.h" | 41 #include "chrome/browser/idle.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 68 #include "chrome/browser/web_resource/promo_resource_service.h" | 67 #include "chrome/browser/web_resource/promo_resource_service.h" |
| 69 #include "chrome/common/chrome_constants.h" | 68 #include "chrome/common/chrome_constants.h" |
| 70 #include "chrome/common/chrome_paths.h" | 69 #include "chrome/common/chrome_paths.h" |
| 71 #include "chrome/common/chrome_switches.h" | 70 #include "chrome/common/chrome_switches.h" |
| 72 #include "chrome/common/extensions/chrome_extensions_client.h" | 71 #include "chrome/common/extensions/chrome_extensions_client.h" |
| 73 #include "chrome/common/pref_names.h" | 72 #include "chrome/common/pref_names.h" |
| 74 #include "chrome/common/switch_utils.h" | 73 #include "chrome/common/switch_utils.h" |
| 75 #include "chrome/common/url_constants.h" | 74 #include "chrome/common/url_constants.h" |
| 76 #include "chrome/installer/util/google_update_constants.h" | 75 #include "chrome/installer/util/google_update_constants.h" |
| 77 #include "chrome/installer/util/google_update_settings.h" | 76 #include "chrome/installer/util/google_update_settings.h" |
| 77 #include "components/component_updater/component_updater_service.h" |
| 78 #include "components/gcm_driver/gcm_driver.h" | 78 #include "components/gcm_driver/gcm_driver.h" |
| 79 #include "components/metrics/metrics_service.h" | 79 #include "components/metrics/metrics_service.h" |
| 80 #include "components/network_time/network_time_tracker.h" | 80 #include "components/network_time/network_time_tracker.h" |
| 81 #include "components/omaha_query_params/omaha_query_params.h" | 81 #include "components/omaha_query_params/omaha_query_params.h" |
| 82 #include "components/policy/core/common/policy_service.h" | 82 #include "components/policy/core/common/policy_service.h" |
| 83 #include "components/signin/core/common/profile_management_switches.h" | 83 #include "components/signin/core/common/profile_management_switches.h" |
| 84 #include "components/translate/core/browser/translate_download_manager.h" | 84 #include "components/translate/core/browser/translate_download_manager.h" |
| 85 #include "content/public/browser/browser_thread.h" | 85 #include "content/public/browser/browser_thread.h" |
| 86 #include "content/public/browser/child_process_security_policy.h" | 86 #include "content/public/browser/child_process_security_policy.h" |
| 87 #include "content/public/browser/notification_details.h" | 87 #include "content/public/browser/notification_details.h" |
| (...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 } | 1205 } |
| 1206 | 1206 |
| 1207 void BrowserProcessImpl::OnAutoupdateTimer() { | 1207 void BrowserProcessImpl::OnAutoupdateTimer() { |
| 1208 if (CanAutorestartForUpdate()) { | 1208 if (CanAutorestartForUpdate()) { |
| 1209 DLOG(WARNING) << "Detected update. Restarting browser."; | 1209 DLOG(WARNING) << "Detected update. Restarting browser."; |
| 1210 RestartBackgroundInstance(); | 1210 RestartBackgroundInstance(); |
| 1211 } | 1211 } |
| 1212 } | 1212 } |
| 1213 | 1213 |
| 1214 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1214 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| OLD | NEW |