From 1cc1d80e08683f601de599aa297826e341a07a3c Mon Sep 17 00:00:00 2001
From: Szabolcs David <davidsz@inf.u-szeged.hu>
Date: Tue, 28 Mar 2017 09:24:31 -0700
Subject: [PATCH] Allow using quota management API for non-standard URLs

The DCHECK in quota_manager.cc ensures that only the standard origins
can request persistent storage. This patch removes the DCHECK and allows
qrc:/ and custom URL scheme handlers to use quotas.

Change-Id: I68a5915d66599fbb3ea844fe1ec3f0b646cbc7b8
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
---
 chromium/storage/browser/quota/quota_manager.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/chromium/storage/browser/quota/quota_manager.cc b/chromium/storage/browser/quota/quota_manager.cc
index 44ba5f1019d..fec93f2c2de 100644
--- a/chromium/storage/browser/quota/quota_manager.cc
+++ b/chromium/storage/browser/quota/quota_manager.cc
@@ -903,7 +903,6 @@ void QuotaManager::GetUsageAndQuotaForWebApps(
     return;
   }
 
-  DCHECK(origin == origin.GetOrigin());
   LazyInitialize();
 
   bool unlimited = IsStorageUnlimited(origin, type);
-- 
GitLab