Remove deprecated SetString in WebUIDataSourceImpl
This removes the use of the deprecated method
DictionaryValue::SetString in WebUIDataSourceImpl.
It also fixes an unintended side effect where
WebUIDataSourceImpl::Add{Localized}String("foo.bar", value)
would create a nested 'foo' dictionary in the JS string
list, causing "foo.bar" to fail to localize when using
loadTimeData.getString('foo.bar').
Bug: None
Change-Id: I1da5f7da168acb681b93bbacccd361bea07800a7
Reviewed-on: https://chromium-review.googlesource.com/875158Reviewed-by:
Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by:
Dave Schuyler <dschuyler@chromium.org>
Commit-Queue: Steven Bennetts <stevenjb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#530542}
Showing
Please register or sign in to comment