diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 22:14:16 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 22:14:16 +0000 |
commit | 220fc392f3f58cdd787bbc5abc5c91d52302d83d (patch) | |
tree | f1a1f5dbe5b4a3b938f0cdce9127792f499726b0 /chrome/renderer/renderer_webkitclient_impl.cc | |
parent | 9f92f9ea3310af9846f84a5390cb52b00ff0a59c (diff) | |
download | chromium_src-220fc392f3f58cdd787bbc5abc5c91d52302d83d.zip chromium_src-220fc392f3f58cdd787bbc5abc5c91d52302d83d.tar.gz chromium_src-220fc392f3f58cdd787bbc5abc5c91d52302d83d.tar.bz2 |
Revert 39732 due to reliability bot failures.
Sometimes there is not a current context.
TBR=jochen
BUG=36600
TEST=none
Review URL: http://codereview.chromium.org/652158
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39780 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_webkitclient_impl.cc')
-rw-r--r-- | chrome/renderer/renderer_webkitclient_impl.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/chrome/renderer/renderer_webkitclient_impl.cc b/chrome/renderer/renderer_webkitclient_impl.cc index 62586b5..9b7327d 100644 --- a/chrome/renderer/renderer_webkitclient_impl.cc +++ b/chrome/renderer/renderer_webkitclient_impl.cc @@ -350,22 +350,6 @@ WebKitClient::FileHandle RendererWebKitClientImpl::databaseOpenFile( vfs_file_name, desired_flags, message_id), message_id, default_response); - if (result.blocked) { - // RoutingIDForCurrentContext scans the render thread's stack for a - // ScriptExecutionContext. However, we are running on the database thread. - // The reason why this works is that the render thread blocks in - // third_party/WebKit/WebCore/storage/Database.cpp:openAndVerifyVersion, - // and therefore, the latest ScriptExecutionContext on the render thread - // is the context in which this database open was requested. - // - // TODO(jochen): either obtain the routing ID in a less fragile way or - // figure out a way to pass the content blocked message to the caller. - int32 routing_id = RenderThread::RoutingIDForCurrentContext(); - CHECK(routing_id != MSG_ROUTING_CONTROL); - db_message_filter->Send(new ViewHostMsg_ContentBlocked( - routing_id, CONTENT_SETTINGS_TYPE_COOKIES)); - } - #if defined(OS_WIN) if (dir_handle) { *dir_handle = base::kInvalidPlatformFileValue; |