[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 Review URL: https://chromiumcodereview.appspot.com/15742014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202006 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment