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

Side by Side Diff: components/password_manager/core/browser/affiliation_utils.h

Issue 1065773006: Revert "Add experiment to exercise AffiliationService with dummy data, plus add related UMA histogr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 // This file contains utilities related to working with "facets". 5 // This file contains utilities related to working with "facets".
6 // 6 //
7 // A "facet" is defined as the manifestation of a logical application on a given 7 // A "facet" is defined as the manifestation of a logical application on a given
8 // platform. For example, "My Bank" may have released an Android application 8 // platform. For example, "My Bank" may have released an Android application
9 // and a Web application accessible from a browser. These are all facets of the 9 // and a Web application accessible from a browser. These are all facets of the
10 // "My Bank" logical application. 10 // "My Bank" logical application.
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 bool IsAffiliationBasedMatchingEnabled(const base::CommandLine& command_line); 178 bool IsAffiliationBasedMatchingEnabled(const base::CommandLine& command_line);
179 179
180 // Returns whether or not propagating password changes to affiliated saved web 180 // Returns whether or not propagating password changes to affiliated saved web
181 // credentials is enabled via variation parameters. This allows disabling only 181 // credentials is enabled via variation parameters. This allows disabling only
182 // the sub-feature while leaving the rest of the affiliation-based matching 182 // the sub-feature while leaving the rest of the affiliation-based matching
183 // enabled. If the main feature is forced enabled/disabled via the command line, 183 // enabled. If the main feature is forced enabled/disabled via the command line,
184 // the sub-feature will be force enabled/disabled correspondingly. 184 // the sub-feature will be force enabled/disabled correspondingly.
185 bool IsPropagatingPasswordChangesToWebCredentialsEnabled( 185 bool IsPropagatingPasswordChangesToWebCredentialsEnabled(
186 const base::CommandLine& command_line); 186 const base::CommandLine& command_line);
187 187
188 // Returns whether or not affiliation requests for dummy facets should be
189 // triggered as part of an experiment to exercise AffiliationService code before
190 // users would get a chance to have any real Android-based credentials. If the
191 // main feature is forced enabled/disabled via the command line, the experiment
192 // is force enabled/disabled correspondingly.
193 bool IsAffiliationRequestsForDummyFacetsEnabled(
194 const base::CommandLine& command_line);
195
196 // For logging use only. 188 // For logging use only.
197 std::ostream& operator<<(std::ostream& os, const FacetURI& facet_uri); 189 std::ostream& operator<<(std::ostream& os, const FacetURI& facet_uri);
198 190
199 } // namespace password_manager 191 } // namespace password_manager
200 192
201 // Provide a hash function so that hash_sets and maps can contain FacetURIs. 193 // Provide a hash function so that hash_sets and maps can contain FacetURIs.
202 namespace BASE_HASH_NAMESPACE { 194 namespace BASE_HASH_NAMESPACE {
203 195
204 template <> 196 template <>
205 struct hash<password_manager::FacetURI> { 197 struct hash<password_manager::FacetURI> {
206 size_t operator()(const password_manager::FacetURI& facet_uri) const { 198 size_t operator()(const password_manager::FacetURI& facet_uri) const {
207 return hash<std::string>()(facet_uri.potentially_invalid_spec()); 199 return hash<std::string>()(facet_uri.potentially_invalid_spec());
208 } 200 }
209 }; 201 };
210 202
211 } // namespace BASE_HASH_NAMESPACE 203 } // namespace BASE_HASH_NAMESPACE
212 204
213 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_UTILS_H_ 205 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698