| Index: content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
|
| diff --git a/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc b/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
|
| index 0430b6b35ace40b7fd42d0851945fe06ef0d93f4..0401ae220667b602266d4679f99cf58687dc974e 100644
|
| --- a/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
|
| +++ b/content/browser/renderer_host/pepper/pepper_file_system_browser_host.cc
|
| @@ -365,7 +365,7 @@ int32_t PepperFileSystemBrowserHost::OnHostMsgInitIsolatedFileSystem(
|
| int32_t PepperFileSystemBrowserHost::OnHostMsgReserveQuota(
|
| ppapi::host::HostMessageContext* context,
|
| int64_t amount,
|
| - const ppapi::FileSizeMap& file_sizes) {
|
| + const ppapi::FileGrowthMap& file_growths) {
|
| DCHECK(ChecksQuota());
|
| DCHECK(amount > 0);
|
|
|
| @@ -373,11 +373,6 @@ int32_t PepperFileSystemBrowserHost::OnHostMsgReserveQuota(
|
| return PP_ERROR_INPROGRESS;
|
| reserving_quota_ = true;
|
|
|
| - ppapi::FileGrowthMap file_growths;
|
| - for (ppapi::FileSizeMap::const_iterator it = file_sizes.begin();
|
| - it != file_sizes.end(); ++it)
|
| - file_growths[it->first] = ppapi::FileGrowth(it->second, 0);
|
| -
|
| int64_t reservation_amount = std::max<int64_t>(kMinimumQuotaReservationSize,
|
| amount);
|
| file_system_context_->default_file_task_runner()->PostTask(
|
| @@ -463,7 +458,7 @@ void PepperFileSystemBrowserHost::GotQuotaReservation(
|
| void PepperFileSystemBrowserHost::GotReservedQuota(
|
| ppapi::host::ReplyMessageContext reply_context,
|
| int64_t amount,
|
| - const ppapi::FileSizeMap& max_written_offsets) {
|
| + const ppapi::FileSizeMap& file_sizes) {
|
| DCHECK(reserving_quota_);
|
| reserving_quota_ = false;
|
| reserved_quota_ = amount;
|
| @@ -471,7 +466,7 @@ void PepperFileSystemBrowserHost::GotReservedQuota(
|
| reply_context.params.set_result(PP_OK);
|
| host()->SendReply(
|
| reply_context,
|
| - PpapiPluginMsg_FileSystem_ReserveQuotaReply(amount, max_written_offsets));
|
| + PpapiPluginMsg_FileSystem_ReserveQuotaReply(amount, file_sizes));
|
| }
|
|
|
| std::string PepperFileSystemBrowserHost::GetPluginMimeType() const {
|
|
|