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/prefs/json_pref_store.h" | 18 #include "base/prefs/json_pref_store.h" |
| 19 #include "base/prefs/pref_registry_simple.h" |
| 20 #include "base/prefs/pref_service.h" |
19 #include "base/synchronization/waitable_event.h" | 21 #include "base/synchronization/waitable_event.h" |
20 #include "base/threading/thread.h" | 22 #include "base/threading/thread.h" |
21 #include "base/threading/thread_restrictions.h" | 23 #include "base/threading/thread_restrictions.h" |
22 #include "chrome/browser/automation/automation_provider_list.h" | 24 #include "chrome/browser/automation/automation_provider_list.h" |
23 #include "chrome/browser/background/background_mode_manager.h" | 25 #include "chrome/browser/background/background_mode_manager.h" |
24 #include "chrome/browser/chrome_browser_main.h" | 26 #include "chrome/browser/chrome_browser_main.h" |
25 #include "chrome/browser/chrome_content_browser_client.h" | 27 #include "chrome/browser/chrome_content_browser_client.h" |
26 #include "chrome/browser/component_updater/component_updater_configurator.h" | 28 #include "chrome/browser/component_updater/component_updater_configurator.h" |
27 #include "chrome/browser/component_updater/component_updater_service.h" | 29 #include "chrome/browser/component_updater/component_updater_service.h" |
28 #include "chrome/browser/defaults.h" | 30 #include "chrome/browser/defaults.h" |
(...skipping 15 matching lines...) Expand all Loading... |
44 #include "chrome/browser/metrics/variations/variations_service.h" | 46 #include "chrome/browser/metrics/variations/variations_service.h" |
45 #include "chrome/browser/net/chrome_net_log.h" | 47 #include "chrome/browser/net/chrome_net_log.h" |
46 #include "chrome/browser/net/crl_set_fetcher.h" | 48 #include "chrome/browser/net/crl_set_fetcher.h" |
47 #include "chrome/browser/net/sdch_dictionary_fetcher.h" | 49 #include "chrome/browser/net/sdch_dictionary_fetcher.h" |
48 #include "chrome/browser/notifications/notification_ui_manager.h" | 50 #include "chrome/browser/notifications/notification_ui_manager.h" |
49 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 51 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
50 #include "chrome/browser/plugins/plugin_finder.h" | 52 #include "chrome/browser/plugins/plugin_finder.h" |
51 #include "chrome/browser/policy/policy_service.h" | 53 #include "chrome/browser/policy/policy_service.h" |
52 #include "chrome/browser/prefs/browser_prefs.h" | 54 #include "chrome/browser/prefs/browser_prefs.h" |
53 #include "chrome/browser/prefs/chrome_pref_service_factory.h" | 55 #include "chrome/browser/prefs/chrome_pref_service_factory.h" |
54 #include "chrome/browser/prefs/pref_registry_simple.h" | |
55 #include "chrome/browser/prefs/pref_service.h" | |
56 #include "chrome/browser/prerender/prerender_tracker.h" | 56 #include "chrome/browser/prerender/prerender_tracker.h" |
57 #include "chrome/browser/printing/background_printing_manager.h" | 57 #include "chrome/browser/printing/background_printing_manager.h" |
58 #include "chrome/browser/printing/print_job_manager.h" | 58 #include "chrome/browser/printing/print_job_manager.h" |
59 #include "chrome/browser/printing/print_preview_dialog_controller.h" | 59 #include "chrome/browser/printing/print_preview_dialog_controller.h" |
60 #include "chrome/browser/profiles/profile_manager.h" | 60 #include "chrome/browser/profiles/profile_manager.h" |
61 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.
h" | 61 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.
h" |
62 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 62 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
63 #include "chrome/browser/shell_integration.h" | 63 #include "chrome/browser/shell_integration.h" |
64 #include "chrome/browser/status_icons/status_tray.h" | 64 #include "chrome/browser/status_icons/status_tray.h" |
65 #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h" | 65 #include "chrome/browser/thumbnails/render_widget_snapshot_taker.h" |
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 } | 1031 } |
1032 | 1032 |
1033 void BrowserProcessImpl::OnAutoupdateTimer() { | 1033 void BrowserProcessImpl::OnAutoupdateTimer() { |
1034 if (CanAutorestartForUpdate()) { | 1034 if (CanAutorestartForUpdate()) { |
1035 DLOG(WARNING) << "Detected update. Restarting browser."; | 1035 DLOG(WARNING) << "Detected update. Restarting browser."; |
1036 RestartBackgroundInstance(); | 1036 RestartBackgroundInstance(); |
1037 } | 1037 } |
1038 } | 1038 } |
1039 | 1039 |
1040 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1040 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |