| Index: chrome/browser/chromeos/login/signed_settings.h
|
| diff --git a/chrome/browser/chromeos/login/signed_settings.h b/chrome/browser/chromeos/login/signed_settings.h
|
| index 69f2bd0ae347e2cd6e2bff87e4dbede84e8d99c4..61d5e15805e6571087bcd862f224fef37a676de4 100644
|
| --- a/chrome/browser/chromeos/login/signed_settings.h
|
| +++ b/chrome/browser/chromeos/login/signed_settings.h
|
| @@ -35,7 +35,8 @@ class OwnershipService;
|
| class SignedSettings : public base::RefCountedThreadSafe<SignedSettings>,
|
| public OwnerManager::Delegate {
|
| public:
|
| - enum FailureCode {
|
| + enum ReturnCode {
|
| + SUCCESS,
|
| NOT_FOUND, // Email address or property name not found.
|
| KEY_UNAVAILABLE, // Owner key not yet configured.
|
| OPERATION_FAILED // Signature op or IPC to signed settings daemon failed.
|
| @@ -44,9 +45,8 @@ class SignedSettings : public base::RefCountedThreadSafe<SignedSettings>,
|
| template <class T>
|
| class Delegate {
|
| public:
|
| - // These methods will be called on the UI thread.
|
| - virtual void OnSettingsOpSucceeded(T value) {}
|
| - virtual void OnSettingsOpFailed(FailureCode code) {}
|
| + // This method will be called on the UI thread.
|
| + virtual void OnSettingsOpCompleted(ReturnCode code, T value) {}
|
| };
|
|
|
| SignedSettings();
|
| @@ -73,7 +73,7 @@ class SignedSettings : public base::RefCountedThreadSafe<SignedSettings>,
|
| const std::string& name,
|
| SignedSettings::Delegate<std::string>* d);
|
|
|
| - static FailureCode MapKeyOpCode(OwnerManager::KeyOpCode code);
|
| + static ReturnCode MapKeyOpCode(OwnerManager::KeyOpCode code);
|
|
|
| virtual void Execute() = 0;
|
|
|
|
|