Commit d5885b86 authored by Justin Donnelly's avatar Justin Donnelly Committed by Commit Bot

Don't send the service worker startup hint if suggestions are disabled.

This is controlled by the "Use a prediction service to help complete
searches and URLs typed in the address bar" setting at
chrome://settings/privacy.

Bug: 751813
Change-Id: Iedf25fbb95e4fe1133fa994843068b26b749e36b
Reviewed-on: https://chromium-review.googlesource.com/598933Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
Commit-Queue: Justin Donnelly <jdonnelly@chromium.org>
Cr-Commit-Position: refs/heads/master@{#491740}
parent 61ec9b3e
...@@ -306,6 +306,9 @@ void ChromeAutocompleteProviderClient::StartServiceWorker( ...@@ -306,6 +306,9 @@ void ChromeAutocompleteProviderClient::StartServiceWorker(
if (!context) if (!context)
return; return;
if (!SearchSuggestEnabled())
return;
context->StartServiceWorkerForNavigationHint(destination_url, context->StartServiceWorkerForNavigationHint(destination_url,
base::Bind(&NoopCallback)); base::Bind(&NoopCallback));
} }
......
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