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

Unified Diff: extensions/browser/extension_host.cc

Issue 1106653002: Flip extension background page throttling on by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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..309c4fa07b6920e6ad81b23ac01ef7b88f014d92 100644
--- a/extensions/browser/extension_host.cc
+++ b/extensions/browser/extension_host.cc
@@ -153,12 +153,9 @@ void ExtensionHost::CreateRenderViewNow() {
"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 (base::FieldTrialList::FindFullName(
not at google - send to devlin 2015/04/23 18:35:04 btw is looking up a field trial at all expensive?
oystein (OOO til 10th of July) 2015/04/23 18:37:28 Agreed; done.
+ "ThrottleExtensionBackgroundPages") != "disabled" &&
not at google - send to devlin 2015/04/23 18:35:04 kinda weird that the case here changed, from "Thro
oystein (OOO til 10th of July) 2015/04/23 18:37:27 Fair enough :). Changed to "Disabled"
+ extensions::BackgroundInfo::HasPersistentBackgroundPage(extension_)) {
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