| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PASSWORD_BUBBLE_EXPERIMENT_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_BUBBLE_EXPERIMENT_H_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_BUBBLE_EXPERIMENT_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_BUBBLE_EXPERIMENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" | 9 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" |
| 10 | 10 |
| 11 class Profile; | 11 class Profile; |
| 12 | 12 |
| 13 namespace password_bubble_experiment { | 13 namespace password_bubble_experiment { |
| 14 | 14 |
| 15 // Should be called when user dismisses the "Save Password?" dialog. It stores | 15 // Should be called when user dismisses the "Save Password?" dialog. It stores |
| 16 // the statistics about interactions with the bubble. | 16 // the statistics about interactions with the bubble. |
| 17 void RecordBubbleClosed( | 17 void RecordBubbleClosed( |
| 18 PrefService* prefs, | 18 PrefService* prefs, |
| 19 password_manager::metrics_util::UIDismissalReason reason); | 19 password_manager::metrics_util::UIDismissalReason reason); |
| 20 | 20 |
| 21 // Returns true if the Save bubble should mention Smart Lock instead of Chrome. | 21 // Returns true if the password manager should be referred to as Smart Lock. |
| 22 // This is only true for signed-in users. | 22 // This is only true for signed-in users. |
| 23 bool IsEnabledSmartLockBranding(Profile* profile); | 23 bool IsSmartLockBrandingEnabled(Profile* profile); |
| 24 | 24 |
| 25 } // namespace password_bubble_experiment | 25 } // namespace password_bubble_experiment |
| 26 | 26 |
| 27 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_BUBBLE_EXPERIMENT_H_ | 27 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_BUBBLE_EXPERIMENT_H_ |
| OLD | NEW |