Commit 34ea66b8 authored by oysteine's avatar oysteine Committed by Commit bot

Flip extension background page throttling on by default

R=kalman
BUG=424661

Review URL: https://codereview.chromium.org/1106653002

Cr-Commit-Position: refs/heads/master@{#326953}
parent 6f76a1e8
...@@ -153,12 +153,9 @@ void ExtensionHost::CreateRenderViewNow() { ...@@ -153,12 +153,9 @@ void ExtensionHost::CreateRenderViewNow() {
"464206 ExtensionHost::CreateRenderViewNow2")); "464206 ExtensionHost::CreateRenderViewNow2"));
DCHECK(IsRenderViewLive()); DCHECK(IsRenderViewLive());
if (extension_) { if (extension_) {
std::string group_name = base::FieldTrialList::FindFullName( if (extensions::BackgroundInfo::HasPersistentBackgroundPage(extension_) &&
"ThrottleExtensionBackgroundPages"); base::FieldTrialList::FindFullName(
if ((group_name == "ThrottlePersistent" && "ThrottleExtensionBackgroundPages") != "Disabled") {
extensions::BackgroundInfo::HasPersistentBackgroundPage(
extension_)) ||
group_name == "ThrottleAll") {
host_contents_->WasHidden(); host_contents_->WasHidden();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment