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_MANAGER_URL_COLLECTION_EXPERIMENT_H
_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_URL_COLLECTION_EXPERIMENT_H
_ |
| 7 |
| 8 namespace user_prefs { |
| 9 class PrefRegistrySyncable; |
| 10 } |
| 11 |
| 12 class PrefService; |
| 13 |
| 14 // These functions implement the algorithms according to which the "Allow to |
| 15 // collect URL?" bubble is shown to user. |
| 16 namespace password_manager { |
| 17 namespace urls_collection_experiment { |
| 18 |
| 19 void RegisterPrefs(user_prefs::PrefRegistrySyncable* registry); |
| 20 |
| 21 // Based on |prefs| and experiment settings, decides whether to show the |
| 22 // "Allow to collect URL?" bubble and should be called before showing it. |
| 23 // The default value is false. |
| 24 bool ShouldShowBubble(PrefService* prefs); |
| 25 |
| 26 // Should be called when user dismisses the "Allow to collect URL?" bubble. |
| 27 // It stores the statistics about interactions with the bubble in |prefs|. |
| 28 void RecordBubbleClosed(PrefService* prefs); |
| 29 |
| 30 // The name of the finch experiment controlling the algorithm. |
| 31 extern const char kExperimentName[]; |
| 32 |
| 33 extern const char kGroupMaybeShowBubble[]; |
| 34 extern const char kGroupNeverShowBubble[]; |
| 35 |
| 36 } // namespace urls_collection_experiment |
| 37 } // namespace password_manager |
| 38 |
| 39 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_URL_COLLECTION_EXPERIMEN
T_H_ |
OLD | NEW |