Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: chrome/browser/ui/passwords/password_manager_url_collection_experiment.h

Issue 777423004: Skeleton code for experiment setup, which will determine should "Allow to collect URL?" bubble be s… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698