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

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

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 #include "components/password_manager/core/browser/affiliation_utils.h" 5 #include "components/password_manager/core/browser/affiliation_utils.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <ostream> 8 #include <ostream>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 const std::string update_enabled = variations::GetVariationParamValue( 313 const std::string update_enabled = variations::GetVariationParamValue(
314 kFieldTrialName, "propagate_password_changes_to_web"); 314 kFieldTrialName, "propagate_password_changes_to_web");
315 315
316 if (command_line.HasSwitch(switches::kDisableAffiliationBasedMatching)) 316 if (command_line.HasSwitch(switches::kDisableAffiliationBasedMatching))
317 return false; 317 return false;
318 if (command_line.HasSwitch(switches::kEnableAffiliationBasedMatching)) 318 if (command_line.HasSwitch(switches::kEnableAffiliationBasedMatching))
319 return true; 319 return true;
320 return LowerCaseEqualsASCII(update_enabled, "enabled"); 320 return LowerCaseEqualsASCII(update_enabled, "enabled");
321 } 321 }
322 322
323 bool IsAffiliationRequestsForDummyFacetsEnabled(
324 const base::CommandLine& command_line) {
325 const std::string synthesizing_enabled = variations::GetVariationParamValue(
326 kFieldTrialName, "affiliation_requests_for_dummy_facets");
327 if (command_line.HasSwitch(switches::kDisableAffiliationBasedMatching))
328 return false;
329 if (command_line.HasSwitch(switches::kEnableAffiliationBasedMatching))
330 return true;
331 return LowerCaseEqualsASCII(synthesizing_enabled, "enabled");
332 }
333
334 bool IsValidAndroidFacetURI(const std::string& url) { 323 bool IsValidAndroidFacetURI(const std::string& url) {
335 FacetURI facet = FacetURI::FromPotentiallyInvalidSpec(url); 324 FacetURI facet = FacetURI::FromPotentiallyInvalidSpec(url);
336 return facet.IsValidAndroidFacetURI(); 325 return facet.IsValidAndroidFacetURI();
337 } 326 }
338 327
339 } // namespace password_manager 328 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698