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

Unified Diff: webkit/browser/fileapi/quota/quota_reservation_buffer.cc

Issue 140173006: [FileAPI] Refine a local variable wording (1/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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/quota/quota_reservation_buffer.cc
diff --git a/webkit/browser/fileapi/quota/quota_reservation_buffer.cc b/webkit/browser/fileapi/quota/quota_reservation_buffer.cc
index 14ea0d0cd8123022c072fa33faf7b84c26738e6f..122674bc7ae4f85f07eb8bf4592b18f5235b040f 100644
--- a/webkit/browser/fileapi/quota/quota_reservation_buffer.cc
+++ b/webkit/browser/fileapi/quota/quota_reservation_buffer.cc
@@ -39,23 +39,23 @@ scoped_ptr<OpenFileHandle> QuotaReservationBuffer::GetOpenFileHandle(
return make_scoped_ptr(new OpenFileHandle(reservation, *open_file));
}
-void QuotaReservationBuffer::CommitFileGrowth(int64 quota_consumption,
+void QuotaReservationBuffer::CommitFileGrowth(int64 reserved_quota_consumption,
int64 usage_delta) {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
if (!reservation_manager_)
return;
reservation_manager_->CommitQuotaUsage(origin_, type_, usage_delta);
- if (quota_consumption > 0) {
- if (quota_consumption > reserved_quota_) {
+ if (reserved_quota_consumption > 0) {
+ if (reserved_quota_consumption > reserved_quota_) {
LOG(ERROR) << "Detected over consumption of the storage quota beyond its"
<< " reservation";
- quota_consumption = reserved_quota_;
+ reserved_quota_consumption = reserved_quota_;
}
- reserved_quota_ -= quota_consumption;
+ reserved_quota_ -= reserved_quota_consumption;
reservation_manager_->ReleaseReservedQuota(
- origin_, type_, quota_consumption);
+ origin_, type_, reserved_quota_consumption);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698