OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <map> | 7 #include <map> |
8 | 8 |
9 #include "app/clipboard/clipboard.h" | 9 #include "app/clipboard/clipboard.h" |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "base/task.h" | 14 #include "base/task.h" |
15 #include "base/thread.h" | 15 #include "base/threading/thread.h" |
16 #include "base/thread_restrictions.h" | 16 #include "base/threading/thread_restrictions.h" |
17 #include "base/waitable_event.h" | 17 #include "base/waitable_event.h" |
18 #include "chrome/browser/appcache/chrome_appcache_service.h" | 18 #include "chrome/browser/appcache/chrome_appcache_service.h" |
19 #include "chrome/browser/automation/automation_provider_list.h" | 19 #include "chrome/browser/automation/automation_provider_list.h" |
20 #include "chrome/browser/browser_child_process_host.h" | 20 #include "chrome/browser/browser_child_process_host.h" |
21 #include "chrome/browser/browser_list.h" | 21 #include "chrome/browser/browser_list.h" |
22 #include "chrome/browser/browser_main.h" | 22 #include "chrome/browser/browser_main.h" |
23 #include "chrome/browser/browser_process_sub_thread.h" | 23 #include "chrome/browser/browser_process_sub_thread.h" |
24 #include "chrome/browser/browser_thread.h" | 24 #include "chrome/browser/browser_thread.h" |
25 #include "chrome/browser/browser_trial.h" | 25 #include "chrome/browser/browser_trial.h" |
26 #include "chrome/browser/debugger/debugger_wrapper.h" | 26 #include "chrome/browser/debugger/debugger_wrapper.h" |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
903 } | 903 } |
904 | 904 |
905 void BrowserProcessImpl::OnAutoupdateTimer() { | 905 void BrowserProcessImpl::OnAutoupdateTimer() { |
906 if (CanAutorestartForUpdate()) { | 906 if (CanAutorestartForUpdate()) { |
907 DLOG(WARNING) << "Detected update. Restarting browser."; | 907 DLOG(WARNING) << "Detected update. Restarting browser."; |
908 RestartPersistentInstance(); | 908 RestartPersistentInstance(); |
909 } | 909 } |
910 } | 910 } |
911 | 911 |
912 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 912 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |