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

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, 7 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 6f388b8b0e433c02ec8cfc8ec3e0294bb6f18eef..bf68fe21aa84760a3cd7b418de2b9eff0b54b53a 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)));
@@ -356,7 +356,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()),

Powered by Google App Engine
This is Rietveld 408576698