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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 10545169: Move thread checking from autofill_country.cc to browser_process_impl.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove code about thread in address_unittest.cc which is no longer needed 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/autofill_country.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index f3e5f0be7bb7b52be0f5d5dd865c364d4c991b44..05b1ac49fe16434d0acc83448362c3c5f6cc6a20 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -531,11 +531,13 @@ IntranetRedirectDetector* BrowserProcessImpl::intranet_redirect_detector() {
}
const std::string& BrowserProcessImpl::GetApplicationLocale() {
+ DCHECK(CalledOnValidThread());
DCHECK(!locale_.empty());
return locale_;
}
void BrowserProcessImpl::SetApplicationLocale(const std::string& locale) {
+ DCHECK(CalledOnValidThread());
locale_ = locale;
extension_l10n_util::SetProcessLocale(locale);
}
« 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