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

Unified Diff: chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc

Issue 11363098: Added quota_status_code.h/cc file to hold QuotaStatusCode enum and added function to convert enum t… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « no previous file | webkit/quota/quota_status_code.h » ('j') | webkit/quota/webkit_quota.gypi » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc
diff --git a/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc b/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc
index 18d51986b424986d398a211bae2e9ab451270586..4f39d1977e1df71836dfff0749e58a8cd2134f12 100644
--- a/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc
+++ b/chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc
@@ -146,10 +146,8 @@ void SyncFileSystemGetUsageAndQuotaFunction::DidGetUsageAndQuota(
}
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- // TODO(calvinlo): Convert QuotaStatusCode to error string
- // (http://crbug.com/156791).
if (status != quota::kQuotaStatusOk) {
- error_ = base::StringPrintf(kQuotaError, static_cast<int>(status));
+ error_ = QuotaStatusCodeToString(status);
SendResponse(false);
return;
}
« no previous file with comments | « no previous file | webkit/quota/quota_status_code.h » ('j') | webkit/quota/webkit_quota.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698