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

Unified Diff: chrome/browser/extensions/extension_function.cc

Issue 10871034: Make all quota-exceeding messages in the storage API explain what the failure (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update... the other error message Created 8 years, 4 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: chrome/browser/extensions/extension_function.cc
diff --git a/chrome/browser/extensions/extension_function.cc b/chrome/browser/extensions/extension_function.cc
index e28e35364c2d2dff3ffea84a24447d0b557219b0..f75cf6edeab45836120793efaf661befa25523f8 100644
--- a/chrome/browser/extensions/extension_function.cc
+++ b/chrome/browser/extensions/extension_function.cc
@@ -87,8 +87,8 @@ bool ExtensionFunction::HasPermission() {
return extension_->HasAPIPermission(name_);
}
-void ExtensionFunction::OnQuotaExceeded() {
- error_ = QuotaLimitHeuristic::kGenericOverQuotaError;
+void ExtensionFunction::OnQuotaExceeded(const std::string& violation_error) {
+ error_ = violation_error;
SendResponse(false);
}
« no previous file with comments | « chrome/browser/extensions/extension_function.h ('k') | chrome/browser/extensions/extension_function_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698