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

Unified Diff: content/browser/service_worker/service_worker_job_unittest.cc

Issue 2071433003: Reland: service worker: Don't control a subframe of an insecure context (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revised Created 4 years, 6 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/browser/service_worker/service_worker_job_unittest.cc
diff --git a/content/browser/service_worker/service_worker_job_unittest.cc b/content/browser/service_worker/service_worker_job_unittest.cc
index fc8cd15d6b4d54d504bdf1bdb65ba77771c121aa..d06955f01f65b1356778951a6f0e894523b29eed 100644
--- a/content/browser/service_worker/service_worker_job_unittest.cc
+++ b/content/browser/service_worker/service_worker_job_unittest.cc
@@ -186,11 +186,12 @@ ServiceWorkerJobTest::FindRegistrationForPattern(
std::unique_ptr<ServiceWorkerProviderHost>
ServiceWorkerJobTest::CreateControllee() {
return std::unique_ptr<ServiceWorkerProviderHost>(
- new ServiceWorkerProviderHost(33 /* dummy render_process id */,
- MSG_ROUTING_NONE /* render_frame_id */,
- 1 /* dummy provider_id */,
- SERVICE_WORKER_PROVIDER_FOR_WINDOW,
- helper_->context()->AsWeakPtr(), NULL));
+ new ServiceWorkerProviderHost(
+ 33 /* dummy render_process id */,
+ MSG_ROUTING_NONE /* render_frame_id */, 1 /* dummy provider_id */,
+ SERVICE_WORKER_PROVIDER_FOR_WINDOW,
+ ServiceWorkerProviderHost::FrameSecurityLevel::SECURE,
+ helper_->context()->AsWeakPtr(), NULL));
}
TEST_F(ServiceWorkerJobTest, SameDocumentSameRegistration) {

Powered by Google App Engine
This is Rietveld 408576698