Chromium Code Reviews| Index: content/worker/webworkerclient_proxy.cc |
| =================================================================== |
| --- content/worker/webworkerclient_proxy.cc (revision 85048) |
| +++ content/worker/webworkerclient_proxy.cc (working copy) |
| @@ -149,12 +149,21 @@ |
| if (origin.isEmpty()) |
| return false; |
| - bool result; |
| - if (!Send(new WorkerProcessHostMsg_AllowDatabase(route_id_, |
| - GURL(origin.toString().utf8()), name, display_name, estimated_size, |
| - &result))) |
| + bool result = false; |
| + Send(new WorkerProcessHostMsg_AllowDatabase( |
| + route_id_, GURL(origin.toString().utf8()), name, display_name, |
| + estimated_size, &result)); |
| + return result; |
| +} |
| + |
| +bool WebWorkerClientProxy::allowFileSystem(WebFrame* frame) { |
| + WebSecurityOrigin origin = frame->securityOrigin(); |
|
michaeln
2011/05/12 02:57:19
frame not needed, see see stub_->url().GetOrigin()
jam
2011/05/12 16:40:34
Done.
|
| + if (origin.isEmpty()) |
| return false; |
| + bool result = false; |
| + Send(new WorkerProcessHostMsg_AllowFileSystem( |
| + route_id_, GURL(origin.toString().utf8()), &result)); |
| return result; |
| } |