Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: chrome/browser/browser_process_impl.cc

Issue 7824041: Update base/timer.h code to pass through Location from call sites. (reland) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: touch Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_drop_info.cc ('k') | chrome/browser/chromeos/cros/login_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698