| 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));
|
| }
|
| }
|
|
|
|
|