Commit 2e66d0c9 authored by Eric Noyau's avatar Eric Noyau Committed by Commit Bot

Removing obsolete flag.

Bug: None
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I26f97dba5a0bb07f83df184db59b8f610c220877
Reviewed-on: https://chromium-review.googlesource.com/888750Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Commit-Queue: Eric Noyau <noyau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532389}
parent 89ebb687
...@@ -48,9 +48,6 @@ bool IsMemoryDebuggingEnabled(); ...@@ -48,9 +48,6 @@ bool IsMemoryDebuggingEnabled();
// Whether the Clear Browsing Data counters and time selection UI is enabled. // Whether the Clear Browsing Data counters and time selection UI is enabled.
bool IsNewClearBrowsingDataUIEnabled(); bool IsNewClearBrowsingDataUIEnabled();
// Whether the page icon for downgraded HTTPS is enabled.
bool IsPageIconForDowngradedHTTPSEnabled();
// Whether startup crash is enabled. // Whether startup crash is enabled.
bool IsStartupCrashEnabled(); bool IsStartupCrashEnabled();
......
...@@ -101,16 +101,6 @@ bool IsNewClearBrowsingDataUIEnabled() { ...@@ -101,16 +101,6 @@ bool IsNewClearBrowsingDataUIEnabled() {
return false; return false;
} }
// Emergency switch for https://crbug.com/527084 in case of unforeseen UX
// regressions.
// Defaults to Enabled unless the Finch trial has explicitly disabled it.
bool IsPageIconForDowngradedHTTPSEnabled() {
std::string group_name =
base::FieldTrialList::FindFullName("IOSPageIconForDowngradedHTTPS");
return !base::StartsWith(group_name, "Disabled",
base::CompareCase::INSENSITIVE_ASCII);
}
bool IsStartupCrashEnabled() { bool IsStartupCrashEnabled() {
return [[NSUserDefaults standardUserDefaults] boolForKey:kEnableStartupCrash]; return [[NSUserDefaults standardUserDefaults] boolForKey:kEnableStartupCrash];
} }
......
...@@ -230,7 +230,6 @@ void LocationBarControllerImpl::OnChanged() { ...@@ -230,7 +230,6 @@ void LocationBarControllerImpl::OnChanged() {
bool show_icon_for_state = security_state::ShouldAlwaysShowIcon( bool show_icon_for_state = security_state::ShouldAlwaysShowIcon(
toolbarModel->GetSecurityLevel(false)); toolbarModel->GetSecurityLevel(false));
bool page_has_downgraded_HTTPS = bool page_has_downgraded_HTTPS =
experimental_flags::IsPageIconForDowngradedHTTPSEnabled() &&
DoesCurrentPageHaveCertInfo(GetWebState()); DoesCurrentPageHaveCertInfo(GetWebState());
if (show_icon_for_state || page_has_downgraded_HTTPS || page_is_offline) { if (show_icon_for_state || page_has_downgraded_HTTPS || page_is_offline) {
[location_bar_view_ setLeadingButtonHidden:NO]; [location_bar_view_ setLeadingButtonHidden:NO];
......
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