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

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

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 f2811c56c645bdb7c7cc0fc2e527ff73b6ddb13b..d09cc579f6f543950385a1a4fc44a51910e7f415 100644
--- a/content/browser/indexed_db/indexed_db_internals_ui.cc
+++ b/content/browser/indexed_db/indexed_db_internals_ui.cc
@@ -126,7 +126,7 @@ void IndexedDBInternalsUI::OnOriginsReady(
const base::FilePath& path) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
web_ui()->CallJavascriptFunctionUnsafe("indexeddb.onOriginsReady", *origins,
- base::StringValue(path.value()));
+ base::Value(path.value()));
}
static void FindContext(const base::FilePath& partition_path,
@@ -270,8 +270,8 @@ void IndexedDBInternalsUI::OnForcedClose(const base::FilePath& partition_path,
const Origin& origin,
size_t connection_count) {
web_ui()->CallJavascriptFunctionUnsafe(
- "indexeddb.onForcedClose", base::StringValue(partition_path.value()),
- base::StringValue(origin.Serialize()),
+ "indexeddb.onForcedClose", base::Value(partition_path.value()),
+ base::Value(origin.Serialize()),
base::Value(static_cast<double>(connection_count)));
}
@@ -358,9 +358,8 @@ void IndexedDBInternalsUI::OnDownloadStarted(
item->AddObserver(new FileDeleter(temp_path));
web_ui()->CallJavascriptFunctionUnsafe(
- "indexeddb.onOriginDownloadReady",
- base::StringValue(partition_path.value()),
- base::StringValue(origin.Serialize()),
+ "indexeddb.onOriginDownloadReady", base::Value(partition_path.value()),
+ base::Value(origin.Serialize()),
base::Value(static_cast<double>(connection_count)));
}
« no previous file with comments | « content/browser/devtools/protocol_string.cc ('k') | content/browser/renderer_host/pepper/pepper_socket_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698