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

Unified Diff: chrome/renderer/content_settings_observer.cc

Issue 290573010: Clean up in browser side of allowFileSystem. [chromium] (4/4) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@asyn_codereview
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « chrome/renderer/content_settings_observer.h ('k') | chrome/renderer/worker_permission_client_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/content_settings_observer.cc
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc
index 3aeb1e1e7de2c3c5c7e6f9d6276997251feefa85..62f2662c91b05d708ac9d9a53bb5671c059a5bec 100644
--- a/chrome/renderer/content_settings_observer.cc
+++ b/chrome/renderer/content_settings_observer.cc
@@ -266,19 +266,6 @@ bool ContentSettingsObserver::allowDatabase(const WebString& name,
return result;
}
-bool ContentSettingsObserver::allowFileSystem() {
- WebFrame* frame = render_frame()->GetWebFrame();
- if (frame->document().securityOrigin().isUnique() ||
- frame->top()->document().securityOrigin().isUnique())
- return false;
-
- bool result = false;
- Send(new ChromeViewHostMsg_RequestFileSystemAccessSync(
- routing_id(), GURL(frame->document().securityOrigin().toString()),
- GURL(frame->top()->document().securityOrigin().toString()), &result));
- return result;
-}
-
void ContentSettingsObserver::requestFileSystemAccessAsync(
const WebPermissionCallbacks& callbacks) {
WebFrame* frame = render_frame()->GetWebFrame();
« no previous file with comments | « chrome/renderer/content_settings_observer.h ('k') | chrome/renderer/worker_permission_client_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698