| Index: chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.h
|
| diff --git a/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.h b/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.h
|
| index 34aac6a150a497ace0db4f960a7979a59c73b184..6a90f8398a7507fdd94796e60dd6236025bf126e 100644
|
| --- a/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.h
|
| +++ b/chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.h
|
| @@ -51,6 +51,9 @@ class QuickUnlockPrivateGetActiveModesFunction
|
| ResponseAction Run() override;
|
|
|
| private:
|
| + void OnGetActiveModes(
|
| + const std::vector<api::quick_unlock_private::QuickUnlockMode>& modes);
|
| +
|
| ChromeExtensionFunctionDetails chrome_details_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(QuickUnlockPrivateGetActiveModesFunction);
|
| @@ -127,7 +130,14 @@ class QuickUnlockPrivateSetModesFunction : public UIThreadExtensionFunction,
|
| void OnAuthFailure(const chromeos::AuthFailure& error) override;
|
| void OnAuthSuccess(const chromeos::UserContext& user_context) override;
|
|
|
| - void ApplyModeChange();
|
| + // Continuation of OnAuthSuccess after active modes have been fetched.
|
| + void OnGetActiveModesAfterAuthSuccess(
|
| + const chromeos::UserContext& user_context,
|
| + const std::vector<QuickUnlockMode>& modes);
|
| +
|
| + // Apply any changes specified in |params_|. Returns the new active modes.
|
| + std::vector<QuickUnlockMode> ApplyModeChange(
|
| + const chromeos::UserContext& user_context);
|
|
|
| private:
|
| void FireEvent(const std::vector<QuickUnlockMode>& modes);
|
|
|