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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 #include "chrome/browser/ui/browser_finder.h" | 69 #include "chrome/browser/ui/browser_finder.h" |
70 #include "chrome/browser/web_resource/promo_resource_service.h" | 70 #include "chrome/browser/web_resource/promo_resource_service.h" |
71 #include "chrome/common/chrome_constants.h" | 71 #include "chrome/common/chrome_constants.h" |
72 #include "chrome/common/chrome_paths.h" | 72 #include "chrome/common/chrome_paths.h" |
73 #include "chrome/common/chrome_switches.h" | 73 #include "chrome/common/chrome_switches.h" |
74 #include "chrome/common/extensions/chrome_extensions_client.h" | 74 #include "chrome/common/extensions/chrome_extensions_client.h" |
75 #include "chrome/common/pref_names.h" | 75 #include "chrome/common/pref_names.h" |
76 #include "chrome/common/switch_utils.h" | 76 #include "chrome/common/switch_utils.h" |
77 #include "chrome/common/url_constants.h" | 77 #include "chrome/common/url_constants.h" |
78 #include "chrome/installer/util/google_update_constants.h" | 78 #include "chrome/installer/util/google_update_constants.h" |
| 79 #include "chrome/installer/util/google_update_settings.h" |
79 #include "components/policy/core/common/policy_service.h" | 80 #include "components/policy/core/common/policy_service.h" |
80 #include "components/signin/core/common/profile_management_switches.h" | 81 #include "components/signin/core/common/profile_management_switches.h" |
81 #include "components/translate/core/browser/translate_download_manager.h" | 82 #include "components/translate/core/browser/translate_download_manager.h" |
82 #include "content/public/browser/browser_thread.h" | 83 #include "content/public/browser/browser_thread.h" |
83 #include "content/public/browser/child_process_security_policy.h" | 84 #include "content/public/browser/child_process_security_policy.h" |
84 #include "content/public/browser/notification_details.h" | 85 #include "content/public/browser/notification_details.h" |
85 #include "content/public/browser/plugin_service.h" | 86 #include "content/public/browser/plugin_service.h" |
86 #include "content/public/browser/render_process_host.h" | 87 #include "content/public/browser/render_process_host.h" |
87 #include "content/public/browser/resource_dispatcher_host.h" | 88 #include "content/public/browser/resource_dispatcher_host.h" |
88 #include "extensions/common/constants.h" | 89 #include "extensions/common/constants.h" |
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 } | 1049 } |
1049 | 1050 |
1050 void BrowserProcessImpl::OnAutoupdateTimer() { | 1051 void BrowserProcessImpl::OnAutoupdateTimer() { |
1051 if (CanAutorestartForUpdate()) { | 1052 if (CanAutorestartForUpdate()) { |
1052 DLOG(WARNING) << "Detected update. Restarting browser."; | 1053 DLOG(WARNING) << "Detected update. Restarting browser."; |
1053 RestartBackgroundInstance(); | 1054 RestartBackgroundInstance(); |
1054 } | 1055 } |
1055 } | 1056 } |
1056 | 1057 |
1057 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1058 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |