From 177169d20749448fd51e0fa73fb526c973947320 Mon Sep 17 00:00:00 2001 From: Thomas Tangl Date: Thu, 20 Dec 2018 14:18:43 +0000 Subject: [PATCH] [unified-consent] Navigate away from sync controls page when unavailable - Navigate to main sync page when sync controls page should *not* be available. I.e. when sync is paused, the user is signed out, sync is disabled or there is a sync error other than passphrase error. - Don't show sync controls page when unified consent is disabled. Bug: 915744 Change-Id: I762a91b170ad379c2ffb8fe9eab4f42a6414fcd0 Reviewed-on: https://chromium-review.googlesource.com/c/1380676 Reviewed-by: Scott Chen Commit-Queue: Thomas Tangl Cr-Original-Commit-Position: refs/heads/master@{#617407}(cherry picked from commit 7db78b069b5fc71f6023ba401690b60292390747) Reviewed-on: https://chromium-review.googlesource.com/c/1386826 Reviewed-by: Thomas Tangl Cr-Commit-Position: refs/branch-heads/3626@{#481} Cr-Branched-From: d897fb137fbaaa9355c0c93124cc048824eb1e65-refs/heads/master@{#612437} --- .../settings/people_page/people_page.html | 16 +++++---- .../settings/people_page/sync_controls.js | 22 +++++++++++- .../people_page_sync_controls_test.js | 34 +++++++++++++++++-- 3 files changed, 62 insertions(+), 10 deletions(-) diff --git a/chrome/browser/resources/settings/people_page/people_page.html b/chrome/browser/resources/settings/people_page/people_page.html index ccbbfb55030ce..66d24d1f29d44 100644 --- a/chrome/browser/resources/settings/people_page/people_page.html +++ b/chrome/browser/resources/settings/people_page/people_page.html @@ -340,13 +340,15 @@ -