OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 return title_brand_link_range_; | 103 return title_brand_link_range_; |
104 } | 104 } |
105 | 105 |
106 Profile* GetProfile() const; | 106 Profile* GetProfile() const; |
107 content::WebContents* GetWebContents() const; | 107 content::WebContents* GetWebContents() const; |
108 | 108 |
109 // Returns true iff the multiple account selection prompt for account update | 109 // Returns true iff the multiple account selection prompt for account update |
110 // should be presented. | 110 // should be presented. |
111 bool ShouldShowMultipleAccountUpdateUI() const; | 111 bool ShouldShowMultipleAccountUpdateUI() const; |
112 | 112 |
| 113 // True if the save bubble should display the warm welcome for Google Smart |
| 114 // Lock. |
| 115 bool ShouldShowGoogleSmartLockWelcome() const; |
| 116 |
113 // Returns true and updates the internal state iff the Save bubble should | 117 // Returns true and updates the internal state iff the Save bubble should |
114 // switch to the Chrome Sign In promo after the password was saved. Otherwise, | 118 // switch to the Chrome Sign In promo after the password was saved. Otherwise, |
115 // returns false and leaves the current state. | 119 // returns false and leaves the current state. |
116 bool ReplaceToShowSignInPromoIfNeeded(); | 120 bool ReplaceToShowSignInPromoIfNeeded(); |
117 | 121 |
118 void SetClockForTesting(std::unique_ptr<base::Clock> clock); | 122 void SetClockForTesting(std::unique_ptr<base::Clock> clock); |
119 | 123 |
120 private: | 124 private: |
121 enum UserBehaviorOnUpdateBubble { | 125 enum UserBehaviorOnUpdateBubble { |
122 UPDATE_CLICKED, | 126 UPDATE_CLICKED, |
(...skipping 25 matching lines...) Expand all Loading... |
148 // Responsible for recording all the interactions required. | 152 // Responsible for recording all the interactions required. |
149 std::unique_ptr<InteractionKeeper> interaction_keeper_; | 153 std::unique_ptr<InteractionKeeper> interaction_keeper_; |
150 | 154 |
151 // A bridge to ManagePasswordsUIController instance. | 155 // A bridge to ManagePasswordsUIController instance. |
152 base::WeakPtr<PasswordsModelDelegate> delegate_; | 156 base::WeakPtr<PasswordsModelDelegate> delegate_; |
153 | 157 |
154 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); | 158 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); |
155 }; | 159 }; |
156 | 160 |
157 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 161 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
OLD | NEW |