Index: content/child/quota_dispatcher.cc |
diff --git a/content/child/quota_dispatcher.cc b/content/child/quota_dispatcher.cc |
index 8d21d95027164229be686ff42db5e67d809054ff..6f20373201ba7da3a77e042d1ea45a3f1a07c0c1 100644 |
--- a/content/child/quota_dispatcher.cc |
+++ b/content/child/quota_dispatcher.cc |
@@ -13,6 +13,7 @@ |
#include "content/common/quota_messages.h" |
#include "third_party/WebKit/public/platform/WebStorageQuotaCallbacks.h" |
#include "third_party/WebKit/public/platform/WebStorageQuotaType.h" |
+#include "third_party/WebKit/public/web/WebUserGestureIndicator.h" |
#include "url/gurl.h" |
using blink::WebStorageQuotaCallbacks; |
@@ -126,8 +127,16 @@ void QuotaDispatcher::RequestStorageQuota( |
DCHECK(CurrentWorkerId() == 0); |
int request_id = quota_message_filter_->GenerateRequestID(CurrentWorkerId()); |
pending_quota_callbacks_.AddWithID(callback, request_id); |
- thread_safe_sender_->Send(new QuotaHostMsg_RequestStorageQuota( |
- render_view_id, request_id, origin_url, type, requested_size)); |
+ |
+ content::RequestStorageQuotaParams params; |
jam
2014/03/27 22:51:49
ditto
Greg Billock
2014/03/28 17:38:03
Done.
|
+ params.render_view_id = render_view_id; |
+ params.request_id = request_id; |
+ params.origin_url = origin_url; |
+ params.storage_type = type; |
+ params.requested_size = requested_size; |
+ params.user_gesture = |
+ blink::WebUserGestureIndicator::isProcessingUserGesture(); |
+ thread_safe_sender_->Send(new QuotaHostMsg_RequestStorageQuota(params)); |
} |
// static |