Use generic base::Value::SetKey
Remove base::Value::SetDoubleWithoutPathExpansion https://chromium-review.googlesource.com/591654 Remove base::Value::SetStringWithoutPathExpansion https://chromium-review.googlesource.com/592368 Remove base::Value::SetIntegerWithoutPathExpansion https://chromium-review.googlesource.com/591655
This commit is contained in:
parent
8250dbd172
commit
75c17cf846
4 changed files with 9 additions and 11 deletions
|
@ -608,7 +608,7 @@ void InspectableWebContentsImpl::GetPreferences(
|
|||
void InspectableWebContentsImpl::SetPreference(const std::string& name,
|
||||
const std::string& value) {
|
||||
DictionaryPrefUpdate update(pref_service_, kDevToolsPreferences);
|
||||
update.Get()->SetStringWithoutPathExpansion(name, value);
|
||||
update.Get()->SetKey(name, base::Value(value));
|
||||
}
|
||||
|
||||
void InspectableWebContentsImpl::RemovePreference(const std::string& name) {
|
||||
|
|
|
@ -95,7 +95,7 @@ void ZoomLevelDelegate::OnZoomLevelChanged(
|
|||
if (modification_is_removal)
|
||||
host_zoom_dictionary->RemoveWithoutPathExpansion(change.host, nullptr);
|
||||
else
|
||||
host_zoom_dictionary->SetDoubleWithoutPathExpansion(change.host, level);
|
||||
host_zoom_dictionary->SetKey(change.host, base::Value(level));
|
||||
}
|
||||
|
||||
void ZoomLevelDelegate::ExtractPerHostZoomLevels(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue