From 48a98b382c7dd08e15aa794dad2eb28dcc75a8d8 Mon Sep 17 00:00:00 2001 From: "tim@chromium.org" Date: Fri, 17 Sep 2010 20:26:59 +0000 Subject: Take 2 - Get password sync to a usable state. Plumb the gaia password up to the cryptographer to generate an encryption key. Add NIGORI to the list of active datatypes to request if enable-sync-passwords is specified. Also fixes behavior from bug 55501 (required adding ExtraChangeRecordData to syncapi), as well as an ADD-handling bug in ApplyChangesFromSyncModel. Add back the call to Cryptographer::Bootstrap which was mistakenly removed in auth refactor. This patch doesn't have necessary UI to handle secondary passphrases, password changes, or existing user upgrades. Only unsynced profiles can currently get password sync working. BUG=48702, 32410, 55501 TEST=ProfileSyncPasswordTest, upcoming password integration tests Review URL: http://codereview.chromium.org/3441009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59840 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/pref_names.cc | 4 ++++ chrome/common/pref_names.h | 1 + 2 files changed, 5 insertions(+) (limited to 'chrome/common') diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc index d7031ae..84a8cc85 100644 --- a/chrome/common/pref_names.cc +++ b/chrome/common/pref_names.cc @@ -940,6 +940,10 @@ const char kSyncCredentialsMigrated[] = "sync.credentials_migrated"; // startup so that the user doesn't need to provide credentials on each start. const char kEncryptionBootstrapToken[] = "sync.encryption_bootstrap_token"; +// Boolean tracking whether the user chose to specify a secondary encryption +// passphrase. +const char kSyncUsingSecondaryPassphrase[] = "sync.using_secondary_passphrase"; + // String that identifies the user logged into sync and other google services. const char kGoogleServicesUsername[] = "google.services.username"; diff --git a/chrome/common/pref_names.h b/chrome/common/pref_names.h index 5f7b957..1bacef4 100644 --- a/chrome/common/pref_names.h +++ b/chrome/common/pref_names.h @@ -346,6 +346,7 @@ extern const char kSyncManaged[]; extern const char kSyncSuppressStart[]; extern const char kGoogleServicesUsername[]; extern const char kSyncCredentialsMigrated[]; +extern const char kSyncUsingSecondaryPassphrase[]; extern const char kEncryptionBootstrapToken[]; extern const char kWebAppCreateOnDesktop[]; -- cgit v1.1