| Index: chrome/browser/ui/passwords/password_manager_url_collection_experiment.h
|
| diff --git a/chrome/browser/ui/passwords/password_manager_url_collection_experiment.h b/chrome/browser/ui/passwords/password_manager_url_collection_experiment.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5d95b353bb8494461ed42a046ca6245207cf97a1
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/passwords/password_manager_url_collection_experiment.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_URL_COLLECTION_EXPERIMENT_H_
|
| +#define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_URL_COLLECTION_EXPERIMENT_H_
|
| +
|
| +namespace user_prefs {
|
| +class PrefRegistrySyncable;
|
| +}
|
| +
|
| +class PrefService;
|
| +
|
| +// These functions implement the algorithms according to which the "Allow to
|
| +// collect URL?" bubble is shown to user.
|
| +namespace password_manager {
|
| +namespace urls_collection_experiment {
|
| +
|
| +void RegisterPrefs(user_prefs::PrefRegistrySyncable* registry);
|
| +
|
| +// Based on |prefs| and experiment settings, decides whether to show the
|
| +// "Allow to collect URL?" bubble and should be called before showing it.
|
| +// The default value is false.
|
| +bool ShouldShowBubble(PrefService* prefs);
|
| +
|
| +// Should be called when user dismisses the "Allow to collect URL?" bubble.
|
| +// It stores the statistics about interactions with the bubble in |prefs|.
|
| +void RecordBubbleClosed(PrefService* prefs);
|
| +
|
| +// The name of the finch experiment controlling the algorithm.
|
| +extern const char kExperimentName[];
|
| +
|
| +extern const char kGroupMaybeShowBubble[];
|
| +extern const char kGroupNeverShowBubble[];
|
| +
|
| +} // namespace urls_collection_experiment
|
| +} // namespace password_manager
|
| +
|
| +#endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_MANAGER_URL_COLLECTION_EXPERIMENT_H_
|
|
|