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 <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/debug/alias.h" | 15 #include "base/debug/alias.h" |
16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
18 #include "base/synchronization/waitable_event.h" | 18 #include "base/synchronization/waitable_event.h" |
19 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
20 #include "base/threading/thread_restrictions.h" | 20 #include "base/threading/thread_restrictions.h" |
21 #include "chrome/browser/automation/automation_provider_list.h" | 21 #include "chrome/browser/automation/automation_provider_list.h" |
22 #include "chrome/browser/background/background_mode_manager.h" | 22 #include "chrome/browser/background/background_mode_manager.h" |
23 #include "chrome/browser/browser_trial.h" | |
24 #include "chrome/browser/chrome_browser_main.h" | 23 #include "chrome/browser/chrome_browser_main.h" |
25 #include "chrome/browser/chrome_content_browser_client.h" | 24 #include "chrome/browser/chrome_content_browser_client.h" |
26 #include "chrome/browser/chrome_plugin_service_filter.h" | 25 #include "chrome/browser/chrome_plugin_service_filter.h" |
27 #include "chrome/browser/component_updater/component_updater_configurator.h" | 26 #include "chrome/browser/component_updater/component_updater_configurator.h" |
28 #include "chrome/browser/component_updater/component_updater_service.h" | 27 #include "chrome/browser/component_updater/component_updater_service.h" |
29 #include "chrome/browser/debugger/remote_debugging_server.h" | 28 #include "chrome/browser/debugger/remote_debugging_server.h" |
30 #include "chrome/browser/download/download_request_limiter.h" | 29 #include "chrome/browser/download/download_request_limiter.h" |
31 #include "chrome/browser/download/download_status_updater.h" | 30 #include "chrome/browser/download/download_status_updater.h" |
32 #include "chrome/browser/extensions/event_router_forwarder.h" | 31 #include "chrome/browser/extensions/event_router_forwarder.h" |
33 #include "chrome/browser/extensions/extension_tab_id_map.h" | 32 #include "chrome/browser/extensions/extension_tab_id_map.h" |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 } | 919 } |
921 | 920 |
922 void BrowserProcessImpl::OnAutoupdateTimer() { | 921 void BrowserProcessImpl::OnAutoupdateTimer() { |
923 if (CanAutorestartForUpdate()) { | 922 if (CanAutorestartForUpdate()) { |
924 DLOG(WARNING) << "Detected update. Restarting browser."; | 923 DLOG(WARNING) << "Detected update. Restarting browser."; |
925 RestartBackgroundInstance(); | 924 RestartBackgroundInstance(); |
926 } | 925 } |
927 } | 926 } |
928 | 927 |
929 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 928 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |