| Index: chrome/browser/ui/webui/settings/settings_cookies_view_handler.cc
|
| diff --git a/chrome/browser/ui/webui/settings/settings_cookies_view_handler.cc b/chrome/browser/ui/webui/settings/settings_cookies_view_handler.cc
|
| index a0fb7dcaeb14d5420d1e1dbeec1680dde4e693f7..d6d1093dd933339bb99ed862ed466c6cd52f2c29 100644
|
| --- a/chrome/browser/ui/webui/settings/settings_cookies_view_handler.cc
|
| +++ b/chrome/browser/ui/webui/settings/settings_cookies_view_handler.cc
|
| @@ -108,8 +108,7 @@ void CookiesViewHandler::TreeNodesAdded(ui::TreeModel* model,
|
| args.SetString(kId, model_util_->GetTreeNodeId(parent_node));
|
| args.SetInteger(kStart, start);
|
| args.Set(kChildren, std::move(children));
|
| - CallJavascriptFunction("cr.webUIListenerCallback",
|
| - base::Value("onTreeItemAdded"), args);
|
| + FireWebUIListener("onTreeItemAdded", args);
|
| }
|
|
|
| void CookiesViewHandler::TreeNodesRemoved(ui::TreeModel* model,
|
| @@ -129,8 +128,7 @@ void CookiesViewHandler::TreeNodesRemoved(ui::TreeModel* model,
|
| args.SetString(kId, model_util_->GetTreeNodeId(tree_model->AsNode(parent)));
|
| args.SetInteger(kStart, start);
|
| args.SetInteger(kCount, count);
|
| - CallJavascriptFunction("cr.webUIListenerCallback",
|
| - base::Value("onTreeItemRemoved"), args);
|
| + FireWebUIListener("onTreeItemRemoved", args);
|
| }
|
|
|
| void CookiesViewHandler::TreeModelBeginBatch(CookiesTreeModel* model) {
|
|
|