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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 10204003: Use WebIDBKeyPath type in WebKit API, implement IndexedDBKeyPath type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Formatting nit. Created 8 years, 8 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/renderer/renderer_webkitplatformsupport_impl.cc
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc
index 2281ad39b5711d7e6b14e1784ea62abab540e128..1c443282482aa9216d27e42fe1b07d33fc1ac7a7 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc
@@ -331,13 +331,13 @@ WebIDBFactory* RendererWebKitPlatformSupportImpl::idbFactory() {
void RendererWebKitPlatformSupportImpl::createIDBKeysFromSerializedValuesAndKeyPath(
const WebVector<WebSerializedScriptValue>& values,
- const WebString& keyPath,
+ const WebIDBKeyPath& keyPath,
WebVector<WebIDBKey>& keys_out) {
DCHECK(CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess));
WebVector<WebIDBKey> keys(values.size());
for (size_t i = 0; i < values.size(); ++i) {
keys[i] = WebIDBKey::createFromValueAndKeyPath(
- values[i], WebIDBKeyPath::create(keyPath));
+ values[i], keyPath);
}
keys_out.swap(keys);
}
@@ -346,10 +346,10 @@ WebSerializedScriptValue
RendererWebKitPlatformSupportImpl::injectIDBKeyIntoSerializedValue(
const WebIDBKey& key,
const WebSerializedScriptValue& value,
- const WebString& keyPath) {
+ const WebIDBKeyPath& keyPath) {
DCHECK(CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess));
return WebIDBKey::injectIDBKeyIntoSerializedValue(
- key, value, WebIDBKeyPath::create(keyPath));
+ key, value, keyPath);
}
//------------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698