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

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: Made MakeApplicationIdentity, updated README 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
Index: shell/context.cc
diff --git a/shell/context.cc b/shell/context.cc
index abd30a1bb98fac86d931f4ca1f6e0d0a785fd26e..85f75fdf786a6cb5b58d54e64bf6af348c979252 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"))
+ ->force_unique_process = true;
+ manager->GetNativeApplicationOptionsForURL(GURL("mojo:pnacl_link"))
+ ->force_unique_process = true;
+ manager->GetNativeApplicationOptionsForURL(
+ GURL("mojo:content_handler_nonsfi_pexe"))
+ ->force_unique_process = true;
+ manager->GetNativeApplicationOptionsForURL(
+ GURL("mojo:content_handler_nonsfi_nexe"))
+ ->force_unique_process = true;
}
class TracingServiceProvider : public ServiceProvider {

Powered by Google App Engine
This is Rietveld 408576698