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

Side by Side Diff: components/password_manager/core/browser/password_bubble_experiment.cc

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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
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 #include "components/password_manager/core/browser/password_bubble_experiment.h" 5 #include "components/password_manager/core/browser/password_bubble_experiment.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/prefs/pref_registry_simple.h"
11 #include "base/prefs/pref_service.h"
12 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
13 #include "components/password_manager/core/browser/password_manager_util.h" 11 #include "components/password_manager/core/browser/password_manager_util.h"
14 #include "components/password_manager/core/common/password_manager_pref_names.h" 12 #include "components/password_manager/core/common/password_manager_pref_names.h"
13 #include "components/prefs/pref_registry_simple.h"
14 #include "components/prefs/pref_service.h"
15 #include "components/variations/variations_associated_data.h" 15 #include "components/variations/variations_associated_data.h"
16 16
17 namespace password_bubble_experiment { 17 namespace password_bubble_experiment {
18 18
19 const char kBrandingExperimentName[] = "PasswordBranding"; 19 const char kBrandingExperimentName[] = "PasswordBranding";
20 const char kSmartBubbleExperimentName[] = "PasswordSmartBubble"; 20 const char kSmartBubbleExperimentName[] = "PasswordSmartBubble";
21 const char kSmartBubbleThresholdParam[] = "dismissal_count"; 21 const char kSmartBubbleThresholdParam[] = "dismissal_count";
22 const char kSmartLockBrandingGroupName[] = "SmartLockBranding"; 22 const char kSmartLockBrandingGroupName[] = "SmartLockBranding";
23 const char kSmartLockBrandingSavePromptOnlyGroupName[] = 23 const char kSmartLockBrandingSavePromptOnlyGroupName[] =
24 "SmartLockBrandingSavePromptOnly"; 24 "SmartLockBrandingSavePromptOnly";
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 return !prefs->GetBoolean( 79 return !prefs->GetBoolean(
80 password_manager::prefs::kWasAutoSignInFirstRunExperienceShown); 80 password_manager::prefs::kWasAutoSignInFirstRunExperienceShown);
81 } 81 }
82 82
83 void RecordAutoSignInPromptFirstRunExperienceWasShown(PrefService* prefs) { 83 void RecordAutoSignInPromptFirstRunExperienceWasShown(PrefService* prefs) {
84 prefs->SetBoolean( 84 prefs->SetBoolean(
85 password_manager::prefs::kWasAutoSignInFirstRunExperienceShown, true); 85 password_manager::prefs::kWasAutoSignInFirstRunExperienceShown, true);
86 } 86 }
87 87
88 } // namespace password_bubble_experiment 88 } // namespace password_bubble_experiment
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698