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

Unified Diff: shell/context.cc

Issue 1444433002: Added anti-singleton services (new process/thread per connection). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Added multiprocess apptest Created 5 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
« no previous file with comments | « shell/application_manager/native_application_options.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/context.cc
diff --git a/shell/context.cc b/shell/context.cc
index c92cfcbea8f9a1e65b18025ff00633595d04dead..b8813384f530a4d771cfb240ef6da93768406b4d 100644
--- a/shell/context.cc
+++ b/shell/context.cc
@@ -194,6 +194,17 @@ void InitNativeOptions(ApplicationManager* manager,
// configuring options for native apps.
manager->GetNativeApplicationOptionsForURL(GURL("mojo:native_support"))
->allow_new_privs = true;
+ // All NaCl operations require a unique process
+ manager->GetNativeApplicationOptionsForURL(GURL("mojo:pnacl_compile"))
+ ->new_process_per_connection = true;
+ manager->GetNativeApplicationOptionsForURL(GURL("mojo:pnacl_link"))
+ ->new_process_per_connection = true;
+ manager->GetNativeApplicationOptionsForURL(
+ GURL("mojo:content_handler_nonsfi_pexe"))
+ ->new_process_per_connection = true;
+ manager->GetNativeApplicationOptionsForURL(
+ GURL("mojo:content_handler_nonsfi_nexe"))
+ ->new_process_per_connection = true;
}
class TracingServiceProvider : public ServiceProvider {
« no previous file with comments | « shell/application_manager/native_application_options.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698