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

Unified Diff: trunk/src/content/browser/child_process_security_policy_impl.cc

Issue 65043023: Revert 235752 "Fix chrome upload with content uri" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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 | « trunk/src/base/test/test_file_util_android.cc ('k') | trunk/src/net/base/file_stream_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/browser/child_process_security_policy_impl.cc
===================================================================
--- trunk/src/content/browser/child_process_security_policy_impl.cc (revision 235758)
+++ trunk/src/content/browser/child_process_security_policy_impl.cc (working copy)
@@ -135,22 +135,6 @@
return (it->second & permissions) == permissions;
}
-#if defined(OS_ANDROID)
- // Determine if the certain permissions have been granted to a content URI.
- bool HasPermissionsForContentUri(const base::FilePath& file,
- int permissions) {
- DCHECK(!file.empty());
- DCHECK(file.IsContentUri());
- if (!permissions)
- return false;
- base::FilePath file_path = file.StripTrailingSeparators();
- FileMap::const_iterator it = file_permissions_.find(file_path);
- if (it != file_permissions_.end())
- return (it->second & permissions) == permissions;
- return false;
- }
-#endif
-
void GrantBindings(int bindings) {
enabled_bindings_ |= bindings;
}
@@ -187,10 +171,6 @@
// Determine if the certain permissions have been granted to a file.
bool HasPermissionsForFile(const base::FilePath& file, int permissions) {
-#if defined(OS_ANDROID)
- if (file.IsContentUri())
- return HasPermissionsForContentUri(file, permissions);
-#endif
if (!permissions || file.empty() || !file.IsAbsolute())
return false;
base::FilePath current_path = file.StripTrailingSeparators();
« no previous file with comments | « trunk/src/base/test/test_file_util_android.cc ('k') | trunk/src/net/base/file_stream_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698