Commit 46aca8d4 authored by felt@chromium.org's avatar felt@chromium.org

Default to malware interstitial v3

Changes Version3Enabled for the malware interstitial. Default is now v3 unless a flag or field trial say otherwise.

BUG=381260

Review URL: https://codereview.chromium.org/331133002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278021 0039d316-1c4b-4281-b951-d872f2087c98
parent 456b0f8a
......@@ -150,12 +150,19 @@ void RecordDetailedUserAction(DetailedDecision decision) {
MAX_DETAILED_ACTION);
}
// These are the constants for the M37 Finch trial.
const char kV3StudyName[] = "MalwareInterstitialVersion";
const char kCondUseV2[] = "V2";
// Default to V3 unless a flag or field trial says otherwise.
bool Version3Enabled() {
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kMalwareInterstitialVersionV3)) {
return true;
switches::kMalwareInterstitialVersionV2)) {
return false;
}
return false;
if (base::FieldTrialList::FindFullName(kV3StudyName) == kCondUseV2)
return false;
return true;
}
} // namespace
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment