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

Unified Diff: webkit/quota/mock_quota_manager.cc

Issue 10197007: Change webkit/{fileapi,quota} code to use TaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 8 years, 8 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/quota/mock_quota_manager.cc
diff --git a/webkit/quota/mock_quota_manager.cc b/webkit/quota/mock_quota_manager.cc
index bac3fcc02a56b034b44c0f7d39707d1dc5a6fe54..82e542a39e1ea656a410dfff579c2f074ceedd9f 100644
--- a/webkit/quota/mock_quota_manager.cc
+++ b/webkit/quota/mock_quota_manager.cc
@@ -10,11 +10,8 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/single_thread_task_runner.h"
#include "googleurl/src/gurl.h"
-#include "webkit/quota/quota_client.h"
-#include "webkit/quota/quota_manager.h"
-#include "webkit/quota/quota_task.h"
-#include "webkit/quota/quota_types.h"
namespace quota {
@@ -24,7 +21,7 @@ class MockQuotaManager::GetModifiedSinceTask : public QuotaThreadTask {
const std::set<GURL>& origins,
StorageType type,
const GetOriginsCallback& callback)
- : QuotaThreadTask(manager, manager->io_thread_),
+ : QuotaThreadTask(manager, manager->io_thread_.get()),
origins_(origins),
type_(type),
callback_(callback) {}
@@ -88,8 +85,8 @@ MockQuotaManager::OriginInfo::~OriginInfo() {}
MockQuotaManager::MockQuotaManager(
bool is_incognito,
const FilePath& profile_path,
- base::MessageLoopProxy* io_thread,
- base::MessageLoopProxy* db_thread,
+ base::SingleThreadTaskRunner* io_thread,
+ base::SingleThreadTaskRunner* db_thread,
SpecialStoragePolicy* special_storage_policy)
: QuotaManager(is_incognito, profile_path, io_thread, db_thread,
special_storage_policy) {

Powered by Google App Engine
This is Rietveld 408576698