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

Unified Diff: chrome/browser/autofill/autofill_country.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/address_unittest.cc ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_country.cc
===================================================================
--- chrome/browser/autofill/autofill_country.cc (revision 142065)
+++ chrome/browser/autofill/autofill_country.cc (working copy)
@@ -422,8 +422,10 @@
}
const std::string CountryNames::ApplicationLocale() {
- if (application_locale_.empty())
+ if (application_locale_.empty()) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
application_locale_ = g_browser_process->GetApplicationLocale();
+ }
return application_locale_;
}
« no previous file with comments | « chrome/browser/autofill/address_unittest.cc ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698