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

Unified Diff: webkit/glue/idb_bindings.cc

Issue 10041014: IndexedDB: API rename to allow return type of keyPath accessors to change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: webkit/glue/idb_bindings.cc
diff --git a/webkit/glue/idb_bindings.cc b/webkit/glue/idb_bindings.cc
index b22d2e5b1e6d4dcf33df04d9866306a343afac26..5ab5cf75193dcddbae1ac60cddf400c7ca808ea0 100644
--- a/webkit/glue/idb_bindings.cc
+++ b/webkit/glue/idb_bindings.cc
@@ -18,12 +18,14 @@ namespace webkit_glue {
using WebKit::WebIDBKey;
using WebKit::WebIDBKeyPath;
using WebKit::WebSerializedScriptValue;
+using WebKit::WebString;
bool IDBKeysFromValuesAndKeyPath(
const std::vector<WebSerializedScriptValue>& serialized_script_values,
const string16& idb_key_path,
std::vector<WebIDBKey>* values) {
- WebIDBKeyPath web_idb_key_path = WebIDBKeyPath::create(idb_key_path);
+ WebIDBKeyPath web_idb_key_path =
+ WebIDBKeyPath::create(WebString(idb_key_path));
dgrogan 2012/04/18 01:56:35 You're going to change WebIDBKeyPath's parameter t
bool error = web_idb_key_path.parseError() != 0;
// When a parse error is encountered, no value is returned (null)
for (std::vector<WebSerializedScriptValue>::const_iterator i =
@@ -44,7 +46,7 @@ WebSerializedScriptValue InjectIDBKey(
const WebSerializedScriptValue& value,
const string16& idb_key_path) {
return WebIDBKey::injectIDBKeyIntoSerializedValue(
- key, value, WebIDBKeyPath::create(idb_key_path));
+ key, value, WebIDBKeyPath::create(WebString(idb_key_path)));
}
} // namespace webkit_glue

Powered by Google App Engine
This is Rietveld 408576698