diff options
author | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-20 18:24:43 +0000 |
---|---|---|
committer | gab@chromium.org <gab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-20 18:24:43 +0000 |
commit | c0078548044391fe75a8054b5ffac2dc7d8e04d6 (patch) | |
tree | 999bbf6b1f4ee7311a9d8b532b12fc0d15e917f6 /chrome/browser/first_run/first_run.cc | |
parent | 5ef5e68e9a1d7ef50c3efc0b8f6fffa50be0b02b (diff) | |
download | chromium_src-c0078548044391fe75a8054b5ffac2dc7d8e04d6.zip chromium_src-c0078548044391fe75a8054b5ffac2dc7d8e04d6.tar.gz chromium_src-c0078548044391fe75a8054b5ffac2dc7d8e04d6.tar.bz2 |
Add the application's locale to SourceProfile as it is required by the Firefox importer and only available on the browser process' UI thread.
Some plumbing is required to get the locale into the SourceProfile (as it is created on the FILE thread); and some more IPC changes are required to make sure it makes it's way into the import utility process.
This is a prerequisite for OOP import on Linux (https://codereview.chromium.org/17379006/)!
BUG=56816
Review URL: https://chromiumcodereview.appspot.com/17318002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run/first_run.cc')
-rw-r--r-- | chrome/browser/first_run/first_run.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/first_run/first_run.cc b/chrome/browser/first_run/first_run.cc index a6c9080..7412162 100644 --- a/chrome/browser/first_run/first_run.cc +++ b/chrome/browser/first_run/first_run.cc @@ -693,7 +693,8 @@ void AutoImport( bool local_state_file_exists = file_util::PathExists(local_state_path); scoped_refptr<ImporterList> importer_list(new ImporterList(NULL)); - importer_list->DetectSourceProfilesHack(); + importer_list->DetectSourceProfilesHack( + g_browser_process->GetApplicationLocale()); // Do import if there is an available profile for us to import. if (importer_list->count() > 0) { |