Add helper function to share code between //ios and //chrome.
commit645376b61a2002dcf6692cb174b340bfb30388df
authorsdefresne <sdefresne@chromium.org>
Thu, 13 Aug 2015 09:45:22 +0000 (13 02:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 13 Aug 2015 09:45:54 +0000 (13 09:45 +0000)
tree5cca98492c924a28af39879a4ed6ae0fbc4d8b0a
parent48854200686afcc6f5ff26b3316cb5ae59c365dc
Add helper function to share code between //ios and //chrome.

Both implementation of AutocompleteProviderClient used the same code
for HasTabSyncEnabledAndUnencrypted() which is kind of sad. Instead
introduce an helper function to share the code.

BUG=519555

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

Cr-Commit-Position: refs/heads/master@{#343173}
chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc
components/sync_driver.gypi
components/sync_driver/BUILD.gn
components/sync_driver/sync_service_utils.cc [new file with mode: 0644]
components/sync_driver/sync_service_utils.h [new file with mode: 0644]
ios/chrome/browser/autocomplete/autocomplete_provider_client_impl.cc