Disable tab syncing when history saving is disabled.
commite3fcbab8a44333d2f10c5dd73cce9b879e44bd2b
authorjoaodasilva <joaodasilva@chromium.org>
Wed, 27 Aug 2014 09:06:17 +0000 (27 02:06 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 27 Aug 2014 09:07:40 +0000 (27 09:07 +0000)
treee932dfbf1986a0211add0b7748b8ce4587cb4bd8
parentd6d4cbd2f7d9cd1e5748ef25daa31f4366301eb2
Disable tab syncing when history saving is disabled.

The history page shows the current tabs of synced devices. This works by
having the client upload its open tabs to the server, which feeds this
data into the history backend.

If history saving is disabled by policy then the opens tabs should not
be uploaded to the server. This also prevents them from showing up in
the history page.

BUG=292976,372108,393051

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

Cr-Commit-Position: refs/heads/master@{#292123}
chrome/browser/sync/glue/typed_url_data_type_controller.cc
chrome/browser/sync/glue/typed_url_data_type_controller.h
chrome/browser/sync/profile_sync_components_factory_impl.cc
chrome/browser/sync/sessions/session_data_type_controller.cc
chrome/browser/sync/sessions/session_data_type_controller.h
chrome/browser/sync/test/integration/sync_errors_test.cc
components/policy/resources/policy_templates.json