| Index: chrome/browser/sync/profile_sync_service.h | 
| diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h | 
| index a0e1cb89e3f2917a031115bc9ecaf051d9e0dd87..e343b1288ae3e65d8e9c237134364fb5bf621557 100644 | 
| --- a/chrome/browser/sync/profile_sync_service.h | 
| +++ b/chrome/browser/sync/profile_sync_service.h | 
| @@ -283,11 +283,17 @@ class ProfileSyncService : public browser_sync::SyncFrontend, | 
| } | 
|  | 
| // Returns true if OnPassphraseRequired has been called for any reason. | 
| -  bool ObservedPassphraseRequired() const { | 
| +  bool IsPassphraseRequired() const { | 
| return passphrase_required_reason_ != | 
| sync_api::REASON_PASSPHRASE_NOT_REQUIRED; | 
| } | 
|  | 
| +  // Returns true if OnPassphraseRequired has been called for decryption. | 
| +  bool IsPassphraseRequiredForDecryption() const { | 
| +    return (passphrase_required_reason_ == sync_api::REASON_DECRYPTION || | 
| +        passphrase_required_reason_ == sync_api::REASON_SET_PASSPHRASE_FAILED); | 
| +  } | 
| + | 
| sync_api::PassphraseRequiredReason passphrase_required_reason() const { | 
| return passphrase_required_reason_; | 
| } | 
|  |