Index: webkit/browser/fileapi/obfuscated_file_util_unittest.cc |
diff --git a/webkit/browser/fileapi/obfuscated_file_util_unittest.cc b/webkit/browser/fileapi/obfuscated_file_util_unittest.cc |
index 0450772457047f11ef0c68637bccab43d46c0c37..f1fa1b1ff7f99509c3f0575730cfd2c9a0218a1e 100644 |
--- a/webkit/browser/fileapi/obfuscated_file_util_unittest.cc |
+++ b/webkit/browser/fileapi/obfuscated_file_util_unittest.cc |
@@ -132,12 +132,11 @@ class ObfuscatedFileUtilTest : public testing::Test { |
scoped_refptr<quota::SpecialStoragePolicy> storage_policy = |
new quota::MockSpecialStoragePolicy(); |
- quota_manager_ = new quota::QuotaManager( |
- false /* is_incognito */, |
- data_dir_.path(), |
- base::MessageLoopProxy::current(), |
- base::MessageLoopProxy::current(), |
- storage_policy); |
+ quota_manager_ = new quota::QuotaManager(false /* is_incognito */, |
+ data_dir_.path(), |
+ base::MessageLoopProxy::current(), |
+ base::MessageLoopProxy::current(), |
+ storage_policy.get()); |
// Every time we create a new sandbox_file_system helper, |
// it creates another context, which creates another path manager, |
@@ -227,9 +226,12 @@ class ObfuscatedFileUtilTest : public testing::Test { |
void GetUsageFromQuotaManager() { |
int64 quota = -1; |
- quota_status_ = AsyncFileTestHelper::GetUsageAndQuota( |
- quota_manager_, origin(), sandbox_file_system_.type(), |
- &usage_, "a); |
+ quota_status_ = |
+ AsyncFileTestHelper::GetUsageAndQuota(quota_manager_.get(), |
+ origin(), |
+ sandbox_file_system_.type(), |
+ &usage_, |
+ "a); |
EXPECT_EQ(quota::kQuotaStatusOk, quota_status_); |
} |