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/chrome_plugin_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/chrome_plugin_host.cc')
-rw-r--r-- | chrome/browser/chrome_plugin_host.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/chrome_plugin_host.cc b/chrome/browser/chrome_plugin_host.cc index dc06c09..806ffe2 100644 --- a/chrome/browser/chrome_plugin_host.cc +++ b/chrome/browser/chrome_plugin_host.cc @@ -472,8 +472,8 @@ int STDCALL CPB_GetBrowsingContextInfo( PluginService* service = PluginService::GetInstance(); if (!service) return CPERR_FAILURE; - const std::wstring& wretval = service->GetUILocale(); - *static_cast<char**>(buf) = CPB_StringDup(CPB_Alloc, WideToUTF8(wretval)); + const std::string& retval = service->GetUILocale(); + *static_cast<char**>(buf) = CPB_StringDup(CPB_Alloc, retval); return CPERR_SUCCESS; } } |