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

Unified Diff: trunk/src/content/worker/worker_webkitplatformsupport_impl.cc

Issue 21042002: Revert 214162 "Make Platform::queryStorageUsageAndQuota work fro..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 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
« no previous file with comments | « trunk/src/content/worker/worker_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/content/worker/worker_webkitplatformsupport_impl.cc
===================================================================
--- trunk/src/content/worker/worker_webkitplatformsupport_impl.cc (revision 214171)
+++ trunk/src/content/worker/worker_webkitplatformsupport_impl.cc (working copy)
@@ -13,7 +13,6 @@
#include "content/child/fileapi/webfilesystem_impl.h"
#include "content/child/indexed_db/proxy_webidbfactory_impl.h"
#include "content/child/quota_dispatcher.h"
-#include "content/child/quota_message_filter.h"
#include "content/child/thread_safe_sender.h"
#include "content/child/webblobregistry_impl.h"
#include "content/child/webmessageportchannel_impl.h"
@@ -77,12 +76,10 @@
WorkerWebKitPlatformSupportImpl::WorkerWebKitPlatformSupportImpl(
ThreadSafeSender* sender,
- IPC::SyncMessageFilter* sync_message_filter,
- QuotaMessageFilter* quota_message_filter)
+ IPC::SyncMessageFilter* sync_message_filter)
: thread_safe_sender_(sender),
child_thread_loop_(base::MessageLoopProxy::current()),
- sync_message_filter_(sync_message_filter),
- quota_message_filter_(quota_message_filter) {
+ sync_message_filter_(sync_message_filter) {
}
WorkerWebKitPlatformSupportImpl::~WorkerWebKitPlatformSupportImpl() {
@@ -305,14 +302,10 @@
const WebKit::WebURL& storage_partition,
WebKit::WebStorageQuotaType type,
WebKit::WebStorageQuotaCallbacks* callbacks) {
- if (!thread_safe_sender_.get() || !quota_message_filter_.get())
- return;
- QuotaDispatcher::ThreadSpecificInstance(
- thread_safe_sender_.get(),
- quota_message_filter_.get())->QueryStorageUsageAndQuota(
- storage_partition,
- static_cast<quota::StorageType>(type),
- QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
+ ChildThread::current()->quota_dispatcher()->QueryStorageUsageAndQuota(
+ storage_partition,
+ static_cast<quota::StorageType>(type),
+ QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
}
} // namespace content
« no previous file with comments | « trunk/src/content/worker/worker_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698