From 6450c6e0b529029790ca3ae00aeae89f4340ff51 Mon Sep 17 00:00:00 2001 From: "jorlow@chromium.org" <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Wed, 6 Oct 2010 21:27:17 +0000 Subject: Fix up the IndexedDB plumbing layers to match the latest WebKit code. Landing http://codereview.chromium.org/3550015/show TEST=none BUG=none Review URL: http://codereview.chromium.org/3575019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61709 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/idb_bindings.cc | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'webkit/glue') diff --git a/webkit/glue/idb_bindings.cc b/webkit/glue/idb_bindings.cc index fd26130..4af085f 100644 --- a/webkit/glue/idb_bindings.cc +++ b/webkit/glue/idb_bindings.cc @@ -20,35 +20,11 @@ using WebKit::WebIDBKey; using WebKit::WebIDBKeyPath; using WebKit::WebSerializedScriptValue; -namespace { - -class LocalContext { - public: - LocalContext() - : context_(v8::Context::New()) { - context_->Enter(); - } - - virtual ~LocalContext() { - context_->Exit(); - context_.Dispose(); - } - - private: - v8::Locker lock_; - v8::HandleScope scope_; - v8::Persistent<v8::Context> context_; - - DISALLOW_COPY_AND_ASSIGN(LocalContext); -}; - -} // namespace - bool IDBKeysFromValuesAndKeyPath( const std::vector<WebSerializedScriptValue>& serialized_script_values, const string16& idb_key_path, std::vector<WebIDBKey>* values) { - LocalContext env; + v8::Locker lock; WebIDBKeyPath web_idb_key_path = WebIDBKeyPath::create(idb_key_path); bool error = web_idb_key_path.parseError() != 0; // TODO(bulach): what to do when we have a parse error? For now, setting -- cgit v1.1