Index: content/browser/service_worker/service_worker_storage.cc |
diff --git a/content/browser/service_worker/service_worker_storage.cc b/content/browser/service_worker/service_worker_storage.cc |
index 62d198bd5aa6e6678b0a66b786222d9d77415c29..dc0f7b113e1093437e08c6aececf284d7c47225e 100644 |
--- a/content/browser/service_worker/service_worker_storage.cc |
+++ b/content/browser/service_worker/service_worker_storage.cc |
@@ -109,6 +109,7 @@ ServiceWorkerStorage::~ServiceWorkerStorage() { |
void ServiceWorkerStorage::FindRegistrationForDocument( |
const GURL& document_url, |
const FindRegistrationCallback& callback) { |
+ DCHECK(!document_url.has_ref()); |
if (!LazyInitialize(base::Bind( |
&ServiceWorkerStorage::FindRegistrationForDocument, |
weak_factory_.GetWeakPtr(), document_url, callback))) { |
@@ -672,6 +673,7 @@ ServiceWorkerStorage::GetOrCreateRegistration( |
ServiceWorkerRegistration* |
ServiceWorkerStorage::FindInstallingRegistrationForDocument( |
const GURL& document_url) { |
+ DCHECK(!document_url.has_ref()); |
// TODO(michaeln): if there are multiple matches the one with |
// the longest scope should win. |
for (RegistrationRefsById::const_iterator it = |