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

Unified Diff: chrome/browser/renderer_host/resource_message_filter.cc

Issue 441022: Changed shared worker code so incognito windows do not have access to non-incognito shared workers. (Closed)
Patch Set: Removed superfluous valgrind change. Created 11 years, 1 month 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: chrome/browser/renderer_host/resource_message_filter.cc
diff --git a/chrome/browser/renderer_host/resource_message_filter.cc b/chrome/browser/renderer_host/resource_message_filter.cc
index d9cc197ad3e676d4d40407bc44f7e16d08c67fb7..cb2943326cc6212e4776c1785d8b3d4a9468ee3e 100644
--- a/chrome/browser/renderer_host/resource_message_filter.cc
+++ b/chrome/browser/renderer_host/resource_message_filter.cc
@@ -630,7 +630,8 @@ void ResourceMessageFilter::OnCreateWorker(const GURL& url,
int* route_id) {
*route_id = render_widget_helper_->GetNextRoutingID();
WorkerService::GetInstance()->CreateWorker(
- url, is_shared, name, id(), render_view_route_id, this, *route_id);
+ url, is_shared, off_the_record(), name, id(), render_view_route_id, this,
+ *route_id);
}
void ResourceMessageFilter::OnLookupSharedWorker(const GURL& url,
@@ -640,7 +641,8 @@ void ResourceMessageFilter::OnLookupSharedWorker(const GURL& url,
bool* url_mismatch) {
int new_route_id = render_widget_helper_->GetNextRoutingID();
bool worker_found = WorkerService::GetInstance()->LookupSharedWorker(
- url, name, document_id, this, new_route_id, url_mismatch);
+ url, name, off_the_record(), document_id, this, new_route_id,
+ url_mismatch);
*route_id = worker_found ? new_route_id : MSG_ROUTING_NONE;
}
« no previous file with comments | « no previous file | chrome/browser/worker_host/worker_process_host.h » ('j') | chrome/browser/worker_host/worker_process_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698