Skip to content

Commit

Permalink
Use base::StartsWith for DRP Secure Proxy Holdback group detection
Browse files Browse the repository at this point in the history
Bug: 768597
Change-Id: I158e1d708a58736277faff7fe73fee4001b018be
Reviewed-on: https://chromium-review.googlesource.com/c/1294405
Reviewed-by: Tarun Bansal <tbansal@chromium.org>
Commit-Queue: Robert Ogden <robertogden@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601681}
  • Loading branch information
Robert Ogden authored and Commit Bot committed Oct 22, 2018
1 parent d3a261d commit e63ca75
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ bool IsIncludedInHoldbackFieldTrial() {
}

bool IsIncludedInSecureProxyHoldbackFieldTrial() {
return base::FieldTrialList::FindFullName("DataCompressionProxyHoldback") ==
"SecureProxy_Disabled";
return base::StartsWith(
base::FieldTrialList::FindFullName("DataCompressionProxyHoldback"),
"SecureProxy_Disabled", base::CompareCase::SENSITIVE);
}

std::string HoldbackFieldTrialGroup() {
Expand Down

0 comments on commit e63ca75

Please sign in to comment.