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

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

Issue 2456413002: Revert of Enable Site Isolation for Extensions. (Closed)
Patch Set: 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
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..3208e21d800491a6e3254932c3bef4c765f5bbdd 100644
--- a/chrome/common/extensions/extension_process_policy.cc
+++ b/chrome/common/extensions/extension_process_policy.cc
@@ -68,7 +68,16 @@
}
bool IsIsolateExtensionsEnabled() {
- return true;
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kIsolateExtensions)) {
+ return true;
+ }
+
+ const std::string group_name =
+ base::FieldTrialList::FindFullName("SiteIsolationExtensions");
+ // Use StartsWith() for more flexibility (e.g. multiple Enabled groups).
+ return base::StartsWith(group_name, "Enabled",
+ base::CompareCase::INSENSITIVE_ASCII);
}
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/extension_apitest.cc ('k') | extensions/browser/guest_view/web_view/web_view_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698