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

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

Issue 10533143: Revert 142048 - Move thread checking from autofill_country.cc to browser_process_impl.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « chrome/browser/autofill/autofill_country.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 } 524 }
525 525
526 IntranetRedirectDetector* BrowserProcessImpl::intranet_redirect_detector() { 526 IntranetRedirectDetector* BrowserProcessImpl::intranet_redirect_detector() {
527 DCHECK(CalledOnValidThread()); 527 DCHECK(CalledOnValidThread());
528 if (!intranet_redirect_detector_.get()) 528 if (!intranet_redirect_detector_.get())
529 CreateIntranetRedirectDetector(); 529 CreateIntranetRedirectDetector();
530 return intranet_redirect_detector_.get(); 530 return intranet_redirect_detector_.get();
531 } 531 }
532 532
533 const std::string& BrowserProcessImpl::GetApplicationLocale() { 533 const std::string& BrowserProcessImpl::GetApplicationLocale() {
534 DCHECK(CalledOnValidThread());
535 DCHECK(!locale_.empty()); 534 DCHECK(!locale_.empty());
536 return locale_; 535 return locale_;
537 } 536 }
538 537
539 void BrowserProcessImpl::SetApplicationLocale(const std::string& locale) { 538 void BrowserProcessImpl::SetApplicationLocale(const std::string& locale) {
540 DCHECK(CalledOnValidThread());
541 locale_ = locale; 539 locale_ = locale;
542 extension_l10n_util::SetProcessLocale(locale); 540 extension_l10n_util::SetProcessLocale(locale);
543 } 541 }
544 542
545 DownloadStatusUpdater* BrowserProcessImpl::download_status_updater() { 543 DownloadStatusUpdater* BrowserProcessImpl::download_status_updater() {
546 return download_status_updater_.get(); 544 return download_status_updater_.get();
547 } 545 }
548 546
549 DownloadRequestLimiter* BrowserProcessImpl::download_request_limiter() { 547 DownloadRequestLimiter* BrowserProcessImpl::download_request_limiter() {
550 DCHECK(CalledOnValidThread()); 548 DCHECK(CalledOnValidThread());
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 } 934 }
937 935
938 void BrowserProcessImpl::OnAutoupdateTimer() { 936 void BrowserProcessImpl::OnAutoupdateTimer() {
939 if (CanAutorestartForUpdate()) { 937 if (CanAutorestartForUpdate()) {
940 DLOG(WARNING) << "Detected update. Restarting browser."; 938 DLOG(WARNING) << "Detected update. Restarting browser.";
941 RestartBackgroundInstance(); 939 RestartBackgroundInstance();
942 } 940 }
943 } 941 }
944 942
945 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 943 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_country.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698