| Index: chrome/browser/ui/passwords/manage_passwords_bubble_model.h
|
| diff --git a/chrome/browser/ui/passwords/manage_passwords_bubble_model.h b/chrome/browser/ui/passwords/manage_passwords_bubble_model.h
|
| index 667f6e9dc5f4781901125ee5c18af85af074701e..2b01a57bad5df1acde14ed157fd853e8ecb69a82 100644
|
| --- a/chrome/browser/ui/passwords/manage_passwords_bubble_model.h
|
| +++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model.h
|
| @@ -73,6 +73,14 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver {
|
| void OnPasswordAction(const autofill::PasswordForm& password_form,
|
| PasswordAction action);
|
|
|
| + // Called by the view when the "Sign in" button in the promo bubble is
|
| + // clicked.
|
| + void OnSignInToChromeClicked();
|
| +
|
| + // Called by the view when the "No thanks" button in the promo bubble is
|
| + // clicked.
|
| + void OnSkipSignInClicked();
|
| +
|
| password_manager::ui::State state() const { return state_; }
|
|
|
| const base::string16& title() const { return title_; }
|
| @@ -105,6 +113,11 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver {
|
| // Lock.
|
| bool ShouldShowGoogleSmartLockWelcome() const;
|
|
|
| + // Returns true and updates the internal state iff the Save bubble should
|
| + // switch to the Chrome Sign In promo after the password was saved. Otherwise,
|
| + // returns false and leaves the current state.
|
| + bool ReplaceToShowSignInPromoIfNeeded();
|
| +
|
| void SetClockForTesting(std::unique_ptr<base::Clock> clock);
|
|
|
| private:
|
|
|