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

Unified Diff: content/browser/renderer_host/file_utilities_message_filter.cc

Issue 9360014: Create a content public browser API around the ChildProcessSecurityPolicy class. The implementati... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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
Index: content/browser/renderer_host/file_utilities_message_filter.cc
===================================================================
--- content/browser/renderer_host/file_utilities_message_filter.cc (revision 120814)
+++ content/browser/renderer_host/file_utilities_message_filter.cc (working copy)
@@ -5,7 +5,7 @@
#include "content/browser/renderer_host/file_utilities_message_filter.h"
#include "base/file_util.h"
-#include "content/browser/child_process_security_policy.h"
+#include "content/browser/child_process_security_policy_impl.h"
#include "content/common/file_utilities_messages.h"
using content::BrowserThread;
@@ -43,7 +43,7 @@
// Get file size only when the child process has been granted permission to
// upload the file.
- if (!ChildProcessSecurityPolicy::GetInstance()->CanReadFile(
+ if (!ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(
process_id_, path)) {
return;
}
@@ -60,7 +60,7 @@
// Get file modification time only when the child process has been granted
// permission to upload the file.
- if (!ChildProcessSecurityPolicy::GetInstance()->CanReadFile(
+ if (!ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(
process_id_, path)) {
return;
}
@@ -78,7 +78,7 @@
// Open the file only when the child process has been granted permission to
// upload the file.
// TODO(jianli): Do we need separate permission to control opening the file?
- if (!ChildProcessSecurityPolicy::GetInstance()->CanReadFile(
+ if (!ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(
process_id_, path)) {
#if defined(OS_WIN)
*result = base::kInvalidPlatformFileValue;

Powered by Google App Engine
This is Rietveld 408576698