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

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: Hiroki Review #1 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') | no next file with comments »
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 8f919bbb5a7f248ffdc8307da740c520c5615748..6e8a96f847e73f295fe45dc126b2f58308658a10 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
@@ -188,10 +188,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698