Make needToCheckForSearchEnginePromo conditional on experiment

Desktop / Chromium - yusufo [chromium.org] - 14 June 2017 18:48 EDT

This call in LocaleManager has to be java only since it may get called from SearchWidgetProvider. But this condition is still dependent on whether we have enabled the search engine promos or not. So this change makes a best effort attempt to take this into account.

For cases where Chrome native library isn't loaded it will be conservative, until a proper check has been done with native loaded.

BUG=732971, 728891

Review-Url: https://codereview.chromium.org/2935313002 Cr-Commit-Position: refs/heads/master@{#479531}

c793296 Make needToCheckForSearchEnginePromo conditional on experiment
.../java/src/org/chromium/chrome/browser/locale/LocaleManager.java | 5 +++++
1 file changed, 5 insertions(+)

Upstream: git.chromium.org


  • Share