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

Omnibox Should Not Start Spare Renderer in Incognito

Bug: 730587
Change-Id: I7985b8ce16d4d63af643cd084993e2589e563ab7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2425204Reviewed-by: default avatarRyan Sturm <ryansturm@chromium.org>
Reviewed-by: default avatarTomasz Wiszkowski <ender@google.com>
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809589}
parent b60c7a01
...@@ -178,7 +178,7 @@ public class AutocompleteController { ...@@ -178,7 +178,7 @@ public class AutocompleteController {
// process does not impact the Omnibox initialization. Note that there's a small chance the // process does not impact the Omnibox initialization. Note that there's a small chance the
// renderer will be started after the next navigation if the delay is too long, but the // renderer will be started after the next navigation if the delay is too long, but the
// spare renderer will probably get used anyways by a later navigation. // spare renderer will probably get used anyways by a later navigation.
if (!NewTabPage.isNTPUrl(url) if (!profile.isOffTheRecord() && !NewTabPage.isNTPUrl(url)
&& ChromeFeatureList.isEnabled(ChromeFeatureList.OMNIBOX_SPARE_RENDERER)) { && ChromeFeatureList.isEnabled(ChromeFeatureList.OMNIBOX_SPARE_RENDERER)) {
PostTask.postDelayedTask(UiThreadTaskTraits.BEST_EFFORT, PostTask.postDelayedTask(UiThreadTaskTraits.BEST_EFFORT,
() ()
......
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