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

Unified Diff: chrome/common/extensions/extension_process_policy.cc

Issue 2417873002: Add support for field trial config for Isolate Extensions. (Closed)
Patch Set: Address review comments. Created 4 years, 2 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
« no previous file with comments | « chrome/browser/extensions/extension_apitest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_process_policy.cc
diff --git a/chrome/common/extensions/extension_process_policy.cc b/chrome/common/extensions/extension_process_policy.cc
index 914427763bfd510328b9217a8b9d0df3e4cdd7e8..0bb15915d62ec6a0ff7215d17537e3d813502aa4 100644
--- a/chrome/common/extensions/extension_process_policy.cc
+++ b/chrome/common/extensions/extension_process_policy.cc
@@ -68,7 +68,11 @@ bool CrossesExtensionProcessBoundary(
}
bool IsIsolateExtensionsEnabled() {
- return true;
+ const std::string group_name =
+ base::FieldTrialList::FindFullName("SiteIsolationExtensions");
+ bool is_control_group = base::StartsWith(
+ group_name, "Control", base::CompareCase::INSENSITIVE_ASCII);
ncarter (slow) 2016/10/13 20:39:45 Is Control already at zero percent for M55+? What
nasko 2016/10/13 22:22:40 Yes.
+ return !is_control_group;
}
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/extension_apitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698