diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-22 00:46:18 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-22 00:46:18 +0000 |
commit | 05871b35bc823da2edc82d296781659f79d0660f (patch) | |
tree | ebdb7f59a6590e40640893c1c30b1532f3067038 /chrome/browser/autofill/autofill_country.h | |
parent | fc9bf18faf17def62fc122dd5df7bbf57c7ea0ce (diff) | |
download | chromium_src-05871b35bc823da2edc82d296781659f79d0660f.zip chromium_src-05871b35bc823da2edc82d296781659f79d0660f.tar.gz chromium_src-05871b35bc823da2edc82d296781659f79d0660f.tar.bz2 |
Fix an Autofill crash caused by accessing the g_browser_process on the DB thread.
This is meant as a minimal-impact CL, so that it should be safe to merge to M16. The more complete fix is being tracked in bug 100845.
BUG=100745
TEST=less crashy
Review URL: http://codereview.chromium.org/8355025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106822 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_country.h')
-rw-r--r-- | chrome/browser/autofill/autofill_country.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/autofill/autofill_country.h b/chrome/browser/autofill/autofill_country.h index a99f68b..7e2b407 100644 --- a/chrome/browser/autofill/autofill_country.h +++ b/chrome/browser/autofill/autofill_country.h @@ -36,6 +36,9 @@ class AutofillCountry { const std::string& locale); // Returns the application locale. + // The first time this is called, it should be called from the UI thread. + // Once [ http://crbug.com/100845 ] is fixed, this method should *only* be + // called from the UI thread. static const std::string ApplicationLocale(); const std::string country_code() const { return country_code_; } |