| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_BUBBLE_EXPERIMENT_H_ | |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_BUBBLE_EXPERIMENT_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "components/password_manager/core/browser/password_manager_metrics_util
.h" | |
| 10 | |
| 11 class PrefService; | |
| 12 | |
| 13 namespace sync_driver { | |
| 14 class SyncService; | |
| 15 } | |
| 16 | |
| 17 namespace password_bubble_experiment { | |
| 18 | |
| 19 // Should be called when user dismisses the "Save Password?" dialog. It stores | |
| 20 // the statistics about interactions with the bubble. | |
| 21 void RecordBubbleClosed( | |
| 22 PrefService* prefs, | |
| 23 password_manager::metrics_util::UIDismissalReason reason); | |
| 24 | |
| 25 // Returns true if the password manager should be referred to as Smart Lock. | |
| 26 // This is only true for signed-in users. | |
| 27 bool IsSmartLockBrandingEnabled(const sync_driver::SyncService* sync_service); | |
| 28 | |
| 29 } // namespace password_bubble_experiment | |
| 30 | |
| 31 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_BUBBLE_EXPERIMENT_H_ | |
| OLD | NEW |