diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 15:42:58 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-03 15:42:58 +0000 |
commit | e2e593d0f2786242b85ca4b8cb000f9f875b2db3 (patch) | |
tree | f47ce111779fb7bd11ceab480912b56232d171ff /chrome/browser/configuration_policy_pref_store.cc | |
parent | 5713f3265b87f12432a31c4a90e59b5f3f2f8f7e (diff) | |
download | chromium_src-e2e593d0f2786242b85ca4b8cb000f9f875b2db3.zip chromium_src-e2e593d0f2786242b85ca4b8cb000f9f875b2db3.tar.gz chromium_src-e2e593d0f2786242b85ca4b8cb000f9f875b2db3.tar.bz2 |
Remove Value/StringValue's ...UTF16() methods in favour of overloading.
Still to do: do the same for DictionaryValue.
BUG=none
TEST=builds
Review URL: http://codereview.chromium.org/3023037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/configuration_policy_pref_store.cc')
-rw-r--r-- | chrome/browser/configuration_policy_pref_store.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/configuration_policy_pref_store.cc b/chrome/browser/configuration_policy_pref_store.cc index e1a2100..34942af 100644 --- a/chrome/browser/configuration_policy_pref_store.cc +++ b/chrome/browser/configuration_policy_pref_store.cc @@ -287,7 +287,7 @@ bool ConfigurationPolicyPrefStore::ApplyPluginPolicy(PolicyType policy, Value* value) { if (policy == kPolicyDisabledPlugins) { string16 plugin_list; - if (value->GetAsUTF16(&plugin_list)) { + if (value->GetAsString(&plugin_list)) { std::vector<string16> plugin_names; // Change commas into tabs so that we can change escaped // tabs back into commas, leaving non-escaped commas as tabs @@ -304,7 +304,7 @@ bool ConfigurationPolicyPrefStore::ApplyPluginPolicy(PolicyType policy, for (std::vector<string16>::const_iterator i(plugin_names.begin()); i != plugin_names.end(); ++i) { if (!i->empty()) { - list->Append(Value::CreateStringValueFromUTF16(*i)); + list->Append(Value::CreateStringValue(*i)); added_plugin = true; } } |