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

Unified Diff: webkit/fileapi/file_system_operation_write_unittest.cc

Issue 8070001: Use base::Callback in Quota related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: choke lint Created 9 years, 3 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: webkit/fileapi/file_system_operation_write_unittest.cc
diff --git a/webkit/fileapi/file_system_operation_write_unittest.cc b/webkit/fileapi/file_system_operation_write_unittest.cc
index f4340428993ef4d39783e3bd4886b68f825386da..8b987196f3f0a6da1fdcde69f0cd59accce9328b 100644
--- a/webkit/fileapi/file_system_operation_write_unittest.cc
+++ b/webkit/fileapi/file_system_operation_write_unittest.cc
@@ -49,9 +49,8 @@ class MockQuotaManager : public QuotaManager {
quota_(quota) {}
virtual void GetUsageAndQuota(const GURL& origin, quota::StorageType type,
- GetUsageAndQuotaCallback* callback) {
- callback->Run(quota::kQuotaStatusOk, usage_, quota_);
- delete callback;
+ GetUsageAndQuotaCallback callback) OVERRIDE {
awong 2011/09/29 18:05:15 const &.
tzik 2011/10/11 04:53:57 Done.
+ callback.Run(quota::kQuotaStatusOk, usage_, quota_);
}
void set_usage(int64 usage) { usage_ = usage; }

Powered by Google App Engine
This is Rietveld 408576698