Description[sync] Fix incorrectly grayed out "Disconnect your Google Account..." button
The "Disconnect your Google Account..." button in the settings page is
supposed to be grayed out when sync setup is in progress, as indicated
by ProfileSyncService::setup_in_progress_. Earlier, we were calling
ProfileSyncService::SetSetupInProgress(false) under all circumstances
from SyncSetupHandler::CloseSyncSetup(), but with r200867, we missed out
on setting the value to false under some conditions. One example of the
flag incorrectly remaining set to true occurs when the user enables
encryption with a custom passphrase and then clears sync data via the
dashboard.
This patch adds a call to ProfileSyncService::SetSetupInProgress(false)
from SyncSetupHandler::CloseSyncSetup() irrespective of why the settings
dialog was closed.
BUG=243078
TEST=Enable custom encryption, do a dashboard clear, and check the settings page
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202006
Patch Set 1 : #
Messages
Total messages: 8 (0 generated)
|