summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/glue/sync_backend_host.cc
diff options
context:
space:
mode:
authorjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-19 18:59:23 +0000
committerjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-19 18:59:23 +0000
commitfc52c42d72d42558e508f6439e8dfbb9b4ea15d9 (patch)
treef9c79d10f15dd7e040c1160f527e7225a6202977 /chrome/browser/sync/glue/sync_backend_host.cc
parentf75df8d4f5607bc425a306b480d99d4bfd944aa8 (diff)
downloadchromium_src-fc52c42d72d42558e508f6439e8dfbb9b4ea15d9.zip
chromium_src-fc52c42d72d42558e508f6439e8dfbb9b4ea15d9.tar.gz
chromium_src-fc52c42d72d42558e508f6439e8dfbb9b4ea15d9.tar.bz2
Add a boolean details to the PASSPHRASE_REQUIRED message that indicates
whether it came from a need to decrypt or just a need to setup the cryptographer for encryption. BUG=none TEST=none Review URL: http://codereview.chromium.org/4849005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/glue/sync_backend_host.cc')
-rw-r--r--chrome/browser/sync/glue/sync_backend_host.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc
index 342e989..068d7b2 100644
--- a/chrome/browser/sync/glue/sync_backend_host.cc
+++ b/chrome/browser/sync/glue/sync_backend_host.cc
@@ -383,11 +383,11 @@ void SyncBackendHost::Core::NotifyResumed() {
NotificationService::NoDetails());
}
-void SyncBackendHost::Core::NotifyPassphraseRequired() {
+void SyncBackendHost::Core::NotifyPassphraseRequired(bool for_decryption) {
NotificationService::current()->Notify(
NotificationType::SYNC_PASSPHRASE_REQUIRED,
Source<SyncBackendHost>(host_),
- NotificationService::NoDetails());
+ Details<bool>(&for_decryption));
}
void SyncBackendHost::Core::NotifyPassphraseAccepted(
@@ -718,9 +718,9 @@ void SyncBackendHost::Core::OnAuthError(const AuthError& auth_error) {
auth_error));
}
-void SyncBackendHost::Core::OnPassphraseRequired() {
+void SyncBackendHost::Core::OnPassphraseRequired(bool for_decryption) {
host_->frontend_loop_->PostTask(FROM_HERE,
- NewRunnableMethod(this, &Core::NotifyPassphraseRequired));
+ NewRunnableMethod(this, &Core::NotifyPassphraseRequired, for_decryption));
}
void SyncBackendHost::Core::OnPassphraseAccepted(