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

Unified Diff: chrome/browser/chromeos/drive/file_system_proxy.cc

Issue 14265022: [Quota][FileAPI] Add quota policy to FileSystemOperationContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drop .gitmodule change Created 7 years, 8 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: chrome/browser/chromeos/drive/file_system_proxy.cc
diff --git a/chrome/browser/chromeos/drive/file_system_proxy.cc b/chrome/browser/chromeos/drive/file_system_proxy.cc
index 9f8f27d7ea07d14f59b08c4eb1c0bc0224c6d250..e927a7663f4cb8fa8b0481776a9e290c7e99cc08 100644
--- a/chrome/browser/chromeos/drive/file_system_proxy.cc
+++ b/chrome/browser/chromeos/drive/file_system_proxy.cc
@@ -42,7 +42,8 @@ void OnPlatformFileOpened(
base::ProcessHandle peer_handle,
base::PlatformFileError* open_error,
base::PlatformFile platform_file) {
- callback.Run(*open_error, platform_file, peer_handle);
+ callback.Run(*open_error, platform_file, peer_handle,
+ quota::kQuotaLimitTypeLimited);
}
// Helper function to run OpenFileCallback from
@@ -58,7 +59,8 @@ void OnGetFileByPathForOpen(
base::PlatformFileError error =
FileErrorToPlatformError(file_error);
if (error != base::PLATFORM_FILE_OK) {
- callback.Run(error, base::kInvalidPlatformFileValue, peer_handle);
+ callback.Run(error, base::kInvalidPlatformFileValue, peer_handle,
+ quota::kQuotaLimitTypeLimited);
return;
}
@@ -404,7 +406,8 @@ void FileSystemProxy::OnOpenFileForWriting(
FileErrorToPlatformError(file_error);
if (error != base::PLATFORM_FILE_OK) {
- callback.Run(error, base::kInvalidPlatformFileValue, peer_handle);
+ callback.Run(error, base::kInvalidPlatformFileValue, peer_handle,
+ quota::kQuotaLimitTypeLimited);
return;
}
@@ -444,7 +447,8 @@ void FileSystemProxy::OnCreateFileForOpen(
file_flags &= ~base::PLATFORM_FILE_CREATE_ALWAYS;
file_flags |= base::PLATFORM_FILE_OPEN_TRUNCATED;
} else {
- callback.Run(create_result, base::kInvalidPlatformFileValue, peer_handle);
+ callback.Run(create_result, base::kInvalidPlatformFileValue, peer_handle,
+ quota::kQuotaLimitTypeLimited);
return;
}
@@ -520,7 +524,8 @@ void FileSystemProxy::OpenFile(
base::Bind(callback,
base::PLATFORM_FILE_ERROR_NOT_FOUND,
base::kInvalidPlatformFileValue,
- peer_handle));
+ peer_handle,
+ quota::kQuotaLimitTypeLimited));
return;
}
@@ -533,7 +538,8 @@ void FileSystemProxy::OpenFile(
base::Bind(callback,
base::PLATFORM_FILE_ERROR_FAILED,
base::kInvalidPlatformFileValue,
- peer_handle));
+ peer_handle,
+ quota::kQuotaLimitTypeLimited));
return;
}
@@ -589,7 +595,8 @@ void FileSystemProxy::OpenFile(
base::Bind(callback,
base::PLATFORM_FILE_ERROR_FAILED,
base::kInvalidPlatformFileValue,
- peer_handle));
+ peer_handle,
+ quota::kQuotaLimitTypeLimited));
}
}
« no previous file with comments | « no previous file | content/browser/fileapi/fileapi_message_filter.h » ('j') | webkit/fileapi/local_file_system_operation.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698