| Index: webkit/glue/idb_bindings.cc
|
| diff --git a/webkit/glue/idb_bindings.cc b/webkit/glue/idb_bindings.cc
|
| index b3d05415ecc9f545c69707352aef023a3b6344ee..57b8eb4c461a42bfa4c358c45b541bf04608523c 100644
|
| --- a/webkit/glue/idb_bindings.cc
|
| +++ b/webkit/glue/idb_bindings.cc
|
| @@ -6,7 +6,6 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/memory/scoped_ptr.h"
|
| -#include "base/string16.h"
|
| #include "base/utf_string_conversions.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h"
|
| @@ -20,37 +19,24 @@ using WebKit::WebIDBKeyPath;
|
| using WebKit::WebSerializedScriptValue;
|
| using WebKit::WebString;
|
|
|
| -bool IDBKeysFromValuesAndKeyPath(
|
| +void IDBKeysFromValuesAndKeyPath(
|
| const std::vector<WebSerializedScriptValue>& serialized_script_values,
|
| - const string16& idb_key_path,
|
| + const WebIDBKeyPath& idb_key_path,
|
| std::vector<WebIDBKey>* values) {
|
| - // TODO(jsbell): Remove the explicit coercion to WebString.
|
| - // http://crbug.com/112308
|
| - WebIDBKeyPath web_idb_key_path =
|
| - WebIDBKeyPath::create(WebString(idb_key_path));
|
| - 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 =
|
| serialized_script_values.begin();
|
| i != serialized_script_values.end(); ++i) {
|
| - if (error) {
|
| - values->push_back(WebIDBKey::createNull());
|
| - } else {
|
| - values->push_back(
|
| - WebIDBKey::createFromValueAndKeyPath(*i, web_idb_key_path));
|
| - }
|
| + values->push_back(
|
| + WebIDBKey::createFromValueAndKeyPath(*i, idb_key_path));
|
| }
|
| - return error;
|
| }
|
|
|
| WebSerializedScriptValue InjectIDBKey(
|
| const WebIDBKey& key,
|
| const WebSerializedScriptValue& value,
|
| - const string16& idb_key_path) {
|
| - // TODO(jsbell): Remove the explicit coercion to WebString.
|
| - // http://crbug.com/112308
|
| + const WebIDBKeyPath& idb_key_path) {
|
| return WebIDBKey::injectIDBKeyIntoSerializedValue(
|
| - key, value, WebIDBKeyPath::create(WebString(idb_key_path)));
|
| + key, value, idb_key_path);
|
| }
|
|
|
| } // namespace webkit_glue
|
|
|