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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 20015002: Make Platform::queryStorageUsageAndQuota work from worker threads (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
Index: content/renderer/renderer_webkitplatformsupport_impl.cc
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc
index 211c567114cbfd638a28ed9185a84cba2ffdb8f2..289198a948a714ac8b8f0e0bee6431f6b446a943 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc
@@ -1162,7 +1162,8 @@ void RendererWebKitPlatformSupportImpl::queryStorageUsageAndQuota(
const WebKit::WebURL& storage_partition,
WebKit::WebStorageQuotaType type,
WebKit::WebStorageQuotaCallbacks* callbacks) {
- ChildThread::current()->quota_dispatcher()->QueryStorageUsageAndQuota(
+ QuotaDispatcher::ThreadSpecificInstance(
+ thread_safe_sender_.get())->QueryStorageUsageAndQuota(
storage_partition,
jam 2013/07/26 04:57:30 nit: need to indent again here now
kinuko 2013/07/29 04:31:55 Done.
static_cast<quota::StorageType>(type),
QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));

Powered by Google App Engine
This is Rietveld 408576698