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

Side by Side Diff: content/browser/worker_host/worker_process_host.cc

Issue 10910207: Remove flags for Workers that violate multiple profile and storage isolation assumptions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge with ToT Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/worker_host/worker_service_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/worker_host/worker_process_host.h" 5 #include "content/browser/worker_host/worker_process_host.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 return false; 145 return false;
146 146
147 CommandLine* cmd_line = new CommandLine(exe_path); 147 CommandLine* cmd_line = new CommandLine(exe_path);
148 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kWorkerProcess); 148 cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kWorkerProcess);
149 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); 149 cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id);
150 std::string locale = 150 std::string locale =
151 content::GetContentClient()->browser()->GetApplicationLocale(); 151 content::GetContentClient()->browser()->GetApplicationLocale();
152 cmd_line->AppendSwitchASCII(switches::kLang, locale); 152 cmd_line->AppendSwitchASCII(switches::kLang, locale);
153 153
154 static const char* const kSwitchNames[] = { 154 static const char* const kSwitchNames[] = {
155 switches::kWebWorkerShareProcesses,
156 switches::kDisableApplicationCache, 155 switches::kDisableApplicationCache,
157 switches::kDisableDatabases, 156 switches::kDisableDatabases,
158 switches::kEnableLogging, 157 switches::kEnableLogging,
159 switches::kLoggingLevel, 158 switches::kLoggingLevel,
160 switches::kDisableWebSockets, 159 switches::kDisableWebSockets,
161 #if defined(OS_WIN) 160 #if defined(OS_WIN)
162 switches::kDisableDesktopNotifications, 161 switches::kDisableDesktopNotifications,
163 #endif 162 #endif
164 switches::kDisableFileSystem, 163 switches::kDisableFileSystem,
165 switches::kDisableSeccompFilterSandbox, 164 switches::kDisableSeccompFilterSandbox,
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 } 700 }
702 } 701 }
703 return false; 702 return false;
704 } 703 }
705 704
706 WorkerProcessHost::WorkerInstance::FilterInfo 705 WorkerProcessHost::WorkerInstance::FilterInfo
707 WorkerProcessHost::WorkerInstance::GetFilter() const { 706 WorkerProcessHost::WorkerInstance::GetFilter() const {
708 DCHECK(NumFilters() == 1); 707 DCHECK(NumFilters() == 1);
709 return *filters_.begin(); 708 return *filters_.begin();
710 } 709 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/worker_host/worker_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698