| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 } else if (*pref == prefs::kAllowCrossOriginAuthPrompt) { | 646 } else if (*pref == prefs::kAllowCrossOriginAuthPrompt) { |
| 647 ApplyAllowCrossOriginAuthPromptPolicy(); | 647 ApplyAllowCrossOriginAuthPromptPolicy(); |
| 648 } | 648 } |
| 649 } else { | 649 } else { |
| 650 NOTREACHED(); | 650 NOTREACHED(); |
| 651 } | 651 } |
| 652 } | 652 } |
| 653 | 653 |
| 654 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 654 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| 655 void BrowserProcessImpl::StartAutoupdateTimer() { | 655 void BrowserProcessImpl::StartAutoupdateTimer() { |
| 656 autoupdate_timer_.Start( | 656 autoupdate_timer_.Start(FROM_HERE, |
| 657 base::TimeDelta::FromHours(kUpdateCheckIntervalHours), | 657 base::TimeDelta::FromHours(kUpdateCheckIntervalHours), |
| 658 this, | 658 this, |
| 659 &BrowserProcessImpl::OnAutoupdateTimer); | 659 &BrowserProcessImpl::OnAutoupdateTimer); |
| 660 } | 660 } |
| 661 #endif | 661 #endif |
| 662 | 662 |
| 663 ChromeNetLog* BrowserProcessImpl::net_log() { | 663 ChromeNetLog* BrowserProcessImpl::net_log() { |
| 664 return net_log_.get(); | 664 return net_log_.get(); |
| 665 } | 665 } |
| 666 | 666 |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 } | 1099 } |
| 1100 | 1100 |
| 1101 void BrowserProcessImpl::OnAutoupdateTimer() { | 1101 void BrowserProcessImpl::OnAutoupdateTimer() { |
| 1102 if (CanAutorestartForUpdate()) { | 1102 if (CanAutorestartForUpdate()) { |
| 1103 DLOG(WARNING) << "Detected update. Restarting browser."; | 1103 DLOG(WARNING) << "Detected update. Restarting browser."; |
| 1104 RestartPersistentInstance(); | 1104 RestartPersistentInstance(); |
| 1105 } | 1105 } |
| 1106 } | 1106 } |
| 1107 | 1107 |
| 1108 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1108 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| OLD | NEW |