Commit f626ee5e authored by ivankr@chromium.org's avatar ivankr@chromium.org

[cros] System setting change is correctly reported to a single JS callback.

BUG=106138
TEST=Manual: see bug comment #2

Review URL: http://codereview.chromium.org/8896004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114013 0039d316-1c4b-4281-b951-d872f2087c98
parent 09b35ecd
......@@ -227,9 +227,11 @@ void CoreChromeOSOptionsHandler::NotifySettingsChanged(
NOTREACHED();
return;
}
for (PreferenceCallbackMap::const_iterator iter =
pref_callback_map_.find(*setting_name);
iter != pref_callback_map_.end(); ++iter) {
std::pair<PreferenceCallbackMap::const_iterator,
PreferenceCallbackMap::const_iterator> range =
pref_callback_map_.equal_range(*setting_name);
for (PreferenceCallbackMap::const_iterator iter = range.first;
iter != range.second; ++iter) {
const std::wstring& callback_function = iter->second;
ListValue result_value;
result_value.Append(base::Value::CreateStringValue(setting_name->c_str()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment