Index: chrome/browser/sync/profile_sync_service_password_unittest.cc |
diff --git a/chrome/browser/sync/profile_sync_service_password_unittest.cc b/chrome/browser/sync/profile_sync_service_password_unittest.cc |
index 5597cdb415c0eaab0cdb66706a3577e192eccfe3..275dc0763b1d7dc374bfdc194afb71dfec6aecc0 100644 |
--- a/chrome/browser/sync/profile_sync_service_password_unittest.cc |
+++ b/chrome/browser/sync/profile_sync_service_password_unittest.cc |
@@ -99,7 +99,17 @@ class PasswordTestProfileSyncService : public TestProfileSyncService { |
virtual ~PasswordTestProfileSyncService() {} |
- virtual void OnPassphraseAccepted() { |
+ virtual void OnPassphraseRequired( |
+ syncer::PassphraseRequiredReason reason, |
+ const sync_pb::EncryptedData& pending_keys) OVERRIDE { |
+ // We purposely don't let passphrase_required_reason_ get set here, in order |
+ // to let the datatype manager get blocked later (at which point we then |
+ // set the encryption passphrase). |
+ // On a normal client, we would have initialized the cryptographer with the |
+ // login credentials. |
+ } |
+ |
+ virtual void OnPassphraseAccepted() OVERRIDE { |
if (!callback_.is_null()) |
callback_.Run(); |