diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 17:43:17 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-30 17:43:17 +0000 |
commit | f77d8762d987502bc4df7d861ae20943edf076cd (patch) | |
tree | e9e5b8c5f08d4d5af786bb9c8edabfdef7fd6a2d /chrome/browser/plugin_process_host.cc | |
parent | b488ea7872d49c212507c7b4827a74aa5501fbc6 (diff) | |
download | chromium_src-f77d8762d987502bc4df7d861ae20943edf076cd.zip chromium_src-f77d8762d987502bc4df7d861ae20943edf076cd.tar.gz chromium_src-f77d8762d987502bc4df7d861ae20943edf076cd.tar.bz2 |
Use a plain ASCII string for the UI locale in the plugin service.
Removes a few needless conversions.
Review URL: http://codereview.chromium.org/3075012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54339 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_process_host.cc')
-rw-r--r-- | chrome/browser/plugin_process_host.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/plugin_process_host.cc b/chrome/browser/plugin_process_host.cc index c4fdf45..6108a46 100644 --- a/chrome/browser/plugin_process_host.cc +++ b/chrome/browser/plugin_process_host.cc @@ -339,7 +339,7 @@ PluginProcessHost::~PluginProcessHost() { } bool PluginProcessHost::Init(const WebPluginInfo& info, - const std::wstring& locale) { + const std::string& locale) { info_ = info; set_name(UTF16ToWideHack(info_.name)); set_version(UTF16ToWideHack(info_.version)); @@ -402,7 +402,7 @@ bool PluginProcessHost::Init(const WebPluginInfo& info, if (!locale.empty()) { // Pass on the locale so the null plugin will use the right language in the // prompt to install the desired plugin. - cmd_line->AppendSwitchWithValue(switches::kLang, locale); + cmd_line->AppendSwitchASCII(switches::kLang, locale); } // Gears requires the data dir to be available on startup. |