Commit ff753527 authored by Robert Ogden's avatar Robert Ogden Committed by Commit Bot

Add delay to canary check at browser start for IsolatedPrerender

Previous CL didn't improve browser startup latency, trying this.

Bug: 1113691
Change-Id: I0264cf566faf3b8a1ec118217ec16582cee5a020
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2354918
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Commit-Queue: Ryan Sturm <ryansturm@chromium.org>
Auto-Submit: Robert Ogden <robertogden@chromium.org>
Reviewed-by: default avatarRyan Sturm <ryansturm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#797909}
parent 0f8fb861
...@@ -165,8 +165,10 @@ IsolatedPrerenderOriginProber::IsolatedPrerenderOriginProber(Profile* profile) ...@@ -165,8 +165,10 @@ IsolatedPrerenderOriginProber::IsolatedPrerenderOriginProber(Profile* profile)
// the chance, but there's no point in it being ready for the first navigation // the chance, but there's no point in it being ready for the first navigation
// since the check won't be done by then anyways. // since the check won't be done by then anyways.
content::GetUIThreadTaskRunner({base::TaskPriority::BEST_EFFORT}) content::GetUIThreadTaskRunner({base::TaskPriority::BEST_EFFORT})
->PostTask(FROM_HERE, ->PostDelayedTask(
base::BindOnce(&StartCanaryCheck, canary_check_->AsWeakPtr())); FROM_HERE,
base::BindOnce(&StartCanaryCheck, canary_check_->AsWeakPtr()),
base::TimeDelta::FromSeconds(1));
} }
IsolatedPrerenderOriginProber::~IsolatedPrerenderOriginProber() = default; IsolatedPrerenderOriginProber::~IsolatedPrerenderOriginProber() = default;
......
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