[Sync] Add support for only prompting for passphrase once
commitb1b09b7962fe68bfb5df60a68e96b6b2f9bd1dcc
authorzea <zea@chromium.org>
Fri, 1 May 2015 17:56:40 +0000 (1 10:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 1 May 2015 17:57:15 +0000 (1 17:57 +0000)
treef2c51bce42883793297d78c6a98f3df0ccafe7e1
parent9b88c63339b08e50458b64cb210b552ebf5dba85
[Sync] Add support for only prompting for passphrase once

If the finch experiment is set, we'll only use the native android
notification once, after which we stop prompting for a passphrase.
The user can still resolve their passphrase error via the settings.

This patch also introduces histograms to track how people typically
interact with the passphrase dialog. In particular, how often do
they not even try to enter a passphrase, enter the wrong passphrase,
succeed, or follow the dashboard reset link.

BUG=481562

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

Cr-Commit-Position: refs/heads/master@{#327935}
13 files changed:
chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java
chrome/android/java/src/org/chromium/chrome/browser/sync/SyncNotificationController.java
chrome/android/java/src/org/chromium/chrome/browser/sync/ui/PassphraseActivity.java
chrome/android/java/src/org/chromium/chrome/browser/sync/ui/PassphraseDialogFragment.java
chrome/android/java/src/org/chromium/chrome/browser/sync/ui/SyncCustomizationFragment.java
chrome/browser/sync/profile_sync_service.cc
chrome/browser/sync/profile_sync_service_android.cc
chrome/browser/sync/profile_sync_service_android.h
components/sync_driver/pref_names.cc
components/sync_driver/pref_names.h
components/sync_driver/sync_prefs.cc
components/sync_driver/sync_prefs.h
tools/metrics/histograms/histograms.xml