Chromium Code Reviews

Unified Diff: content/browser/fileapi/fileapi_message_filter.cc

Issue 46303005: Fix chrome upload with content uri (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simplify the change using FILE enum instead of adding a new enum Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: content/browser/fileapi/fileapi_message_filter.cc
diff --git a/content/browser/fileapi/fileapi_message_filter.cc b/content/browser/fileapi/fileapi_message_filter.cc
index 99439b742ac06bb8d7cef00da0376a8fb317f6cb..e3e798f614b6d9e2bc3924ea8f950abda1c50f1d 100644
--- a/content/browser/fileapi/fileapi_message_filter.cc
+++ b/content/browser/fileapi/fileapi_message_filter.cc
@@ -63,7 +63,7 @@ namespace {
void RevokeFilePermission(int child_id, const base::FilePath& path) {
ChildProcessSecurityPolicyImpl::GetInstance()->RevokeAllPermissionsForFile(
- child_id, path);
+ child_id, path);
}
} // namespace
@@ -500,7 +500,7 @@ void FileAPIMessageFilter::OnCancel(
void FileAPIMessageFilter::OnOpenPepperFile(
int request_id, const GURL& path, int pp_open_flags) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
-FileSystemURL url(context_->CrackURL(path));
+ FileSystemURL url(context_->CrackURL(path));
if (!ValidateFileSystemURL(request_id, url))
return;
if (!CanOpenFileSystemURLWithPepperFlags(pp_open_flags, process_id_, url)) {
@@ -692,7 +692,7 @@ void FileAPIMessageFilter::OnStartBuildingStream(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
// Only an internal Blob URL is expected here. See the BlobURL of the Blink.
if (!StartsWithASCII(
- url.path(), "blobinternal%3A///", true /* case_sensitive */)) {
+ url.path(), "blobinternal%3A///", true /* case_sensitive */)) {
NOTREACHED() << "Malformed Stream URL: " << url.spec();
BadMessageReceived();
return;
@@ -942,7 +942,7 @@ void FileAPIMessageFilter::DidCreateSnapshot(
// Return the file info and platform_path.
Send(new FileSystemMsg_DidCreateSnapshotFile(
- request_id, info, platform_path));
+ request_id, info, platform_path));
joth 2013/10/31 06:42:39 ubernit: indent one char more. (align with open pa
qinmin 2013/11/05 01:41:31 Done.
}
bool FileAPIMessageFilter::ValidateFileSystemURL(

Powered by Google App Engine