Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1446)

Unified Diff: content/browser/indexed_db/indexed_db_internals_ui.cc

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_internals_ui.cc
diff --git a/content/browser/indexed_db/indexed_db_internals_ui.cc b/content/browser/indexed_db/indexed_db_internals_ui.cc
index e437f6754043559d774bfc67afaade49f8f9b650..357ed1e148b2b7ca1663d3f6e50e266270080c69 100644
--- a/content/browser/indexed_db/indexed_db_internals_ui.cc
+++ b/content/browser/indexed_db/indexed_db_internals_ui.cc
@@ -124,8 +124,8 @@ void IndexedDBInternalsUI::OnOriginsReady(
std::unique_ptr<base::ListValue> origins,
const base::FilePath& path) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- web_ui()->CallJavascriptFunction(
- "indexeddb.onOriginsReady", *origins, base::StringValue(path.value()));
+ web_ui()->CallJavascriptFunctionUnsafe("indexeddb.onOriginsReady", *origins,
+ base::StringValue(path.value()));
}
static void FindContext(const base::FilePath& partition_path,
@@ -269,7 +269,7 @@ void IndexedDBInternalsUI::ForceCloseOriginOnIndexedDBThread(
void IndexedDBInternalsUI::OnForcedClose(const base::FilePath& partition_path,
const Origin& origin,
size_t connection_count) {
- web_ui()->CallJavascriptFunction(
+ web_ui()->CallJavascriptFunctionUnsafe(
"indexeddb.onForcedClose", base::StringValue(partition_path.value()),
base::StringValue(origin.Serialize()),
base::FundamentalValue(static_cast<double>(connection_count)));
@@ -357,7 +357,7 @@ void IndexedDBInternalsUI::OnDownloadStarted(
}
item->AddObserver(new FileDeleter(temp_path));
- web_ui()->CallJavascriptFunction(
+ web_ui()->CallJavascriptFunctionUnsafe(
"indexeddb.onOriginDownloadReady",
base::StringValue(partition_path.value()),
base::StringValue(origin.Serialize()),
« no previous file with comments | « content/browser/gpu/gpu_internals_ui.cc ('k') | content/browser/service_worker/service_worker_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698