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

Unified Diff: extensions/browser/extension_host.cc

Issue 1161773008: Revert of Revert of Flip extension background page throttling on by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_host.cc
diff --git a/extensions/browser/extension_host.cc b/extensions/browser/extension_host.cc
index 0afeb4338c865c058fe79e77f80c98d5dc39e069..edeb7461878b652ba798e6e166b0ba565816cf5a 100644
--- a/extensions/browser/extension_host.cc
+++ b/extensions/browser/extension_host.cc
@@ -153,12 +153,9 @@
"464206 ExtensionHost::CreateRenderViewNow2"));
DCHECK(IsRenderViewLive());
if (extension_) {
- std::string group_name = base::FieldTrialList::FindFullName(
- "ThrottleExtensionBackgroundPages");
- if ((group_name == "ThrottlePersistent" &&
- extensions::BackgroundInfo::HasPersistentBackgroundPage(
- extension_)) ||
- group_name == "ThrottleAll") {
+ if (extensions::BackgroundInfo::HasPersistentBackgroundPage(extension_) &&
+ base::FieldTrialList::FindFullName(
+ "ThrottleExtensionBackgroundPages") != "Disabled") {
host_contents_->WasHidden();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698