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

Unified Diff: extensions/browser/quota_service.cc

Issue 704453002: Allow extension function call quota to be un-throttled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: betterify Created 6 years, 1 month 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: extensions/browser/quota_service.cc
diff --git a/extensions/browser/quota_service.cc b/extensions/browser/quota_service.cc
index 98e4b75959ad36e19998df401d92a641a12bcf4e..dbd11768bf76bc88cab7b25563208656aeedbd8d 100644
--- a/extensions/browser/quota_service.cc
+++ b/extensions/browser/quota_service.cc
@@ -57,11 +57,6 @@ std::string QuotaService::Assess(const std::string& extension_id,
if (heuristics.empty())
return std::string(); // No heuristic implies no limit.
- ViolationErrorMap::iterator violation_error =
- violation_errors_.find(extension_id);
- if (violation_error != violation_errors_.end())
- return violation_error->second; // Repeat offender.
-
QuotaLimitHeuristic* failed_heuristic = NULL;
for (QuotaLimitHeuristics::iterator heuristic = heuristics.begin();
heuristic != heuristics.end();
@@ -78,10 +73,6 @@ std::string QuotaService::Assess(const std::string& extension_id,
std::string error = failed_heuristic->GetError();
DCHECK_GT(error.length(), 0u);
-
- PurgeFunctionHeuristicsMap(&functions);
- function_heuristics_.erase(extension_id);
- violation_errors_[extension_id] = error;
return error;
}

Powered by Google App Engine
This is Rietveld 408576698