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

Unified Diff: webkit/fileapi/file_system_operation_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_unittest.cc
diff --git a/webkit/fileapi/file_system_operation_unittest.cc b/webkit/fileapi/file_system_operation_unittest.cc
index a0c67d3a1051543686eefc89fef78c6605d36cb4..7eec2e2eeec7be84e01aebac3febf7caa0049997 100644
--- a/webkit/fileapi/file_system_operation_unittest.cc
+++ b/webkit/fileapi/file_system_operation_unittest.cc
@@ -51,11 +51,10 @@ class MockQuotaManager : public QuotaManager {
virtual void GetUsageAndQuota(
const GURL& origin, quota::StorageType type,
- GetUsageAndQuotaCallback* callback) {
+ GetUsageAndQuotaCallback callback) OVERRIDE {
awong 2011/09/29 18:05:15 const &.
tzik 2011/10/11 04:53:57 Done.
EXPECT_EQ(origin_, origin);
EXPECT_EQ(type_, type);
- callback->Run(quota::kQuotaStatusOk, usage_, quota_);
- delete callback;
+ callback.Run(quota::kQuotaStatusOk, usage_, quota_);
}
private:
@@ -97,7 +96,7 @@ class MockQuotaManagerProxy : public QuotaManagerProxy {
EXPECT_FALSE(registered_client_);
}
- virtual void RegisterClient(QuotaClient* client) {
+ virtual void RegisterClient(QuotaClient* client) OVERRIDE {
EXPECT_FALSE(registered_client_);
registered_client_ = client;
}

Powered by Google App Engine
This is Rietveld 408576698