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

Unified Diff: content/browser/renderer_host/pepper/quota_reservation.cc

Issue 140833003: [Pepper][FileAPI] Interface clean up (3/6) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/pepper/quota_reservation.cc
diff --git a/content/browser/renderer_host/pepper/quota_reservation.cc b/content/browser/renderer_host/pepper/quota_reservation.cc
index f30a7c6ad505f270d70d80c4f736a478d1748da8..dc6806d5b31c80ff32f999817fb38dc05a3876bb 100644
--- a/content/browser/renderer_host/pepper/quota_reservation.cc
+++ b/content/browser/renderer_host/pepper/quota_reservation.cc
@@ -70,7 +70,7 @@ int64_t QuotaReservation::OpenFile(int32_t id,
std::pair<FileMap::iterator, bool> insert_result =
files_.insert(std::make_pair(id, file_handle.get()));
if (insert_result.second) {
- int64_t max_written_offset = file_handle->base_file_size();
+ int64_t max_written_offset = file_handle->GetEstimatedFileSize();
ignore_result(file_handle.release());
return max_written_offset;
}
@@ -119,7 +119,7 @@ void QuotaReservation::GotReservedQuota(
OffsetMap max_written_offsets;
for (FileMap::iterator it = files_.begin(); it != files_.end(); ++ it) {
max_written_offsets.insert(
- std::make_pair(it->first, it->second->base_file_size()));
+ std::make_pair(it->first, it->second->GetEstimatedFileSize()));
}
if (file_system_context_) {
« no previous file with comments | « no previous file | webkit/browser/fileapi/quota/open_file_handle.h » ('j') | webkit/browser/fileapi/quota/open_file_handle.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698