Commit b0e85ff6 authored by Carlos Caballero's avatar Carlos Caballero Committed by Commit Bot

Remove always true check

navigation_handle->IsErrorPage() will always be false in
DidStartNavigation as the error state is set upon commiting the
navigation.

Change-Id: Ib8bd7e49a49b87e26a795080a45038f255295c95
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1895348
Commit-Queue: Carlos Caballero <carlscab@google.com>
Reviewed-by: default avatarAlexander Timin <altimin@chromium.org>
Reviewed-by: default avatarMartin Šrámek <msramek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#716140}
parent d85abc84
......@@ -754,11 +754,7 @@ void TabSpecificContentSettings::DidStartNavigation(
return;
}
// If we're displaying a network error page do not reset the content
// settings delegate's cookies so the user has a chance to modify cookie
// settings.
if (!navigation_handle->IsErrorPage())
ClearNavigationRelatedContentSettings();
ClearNavigationRelatedContentSettings();
ClearGeolocationContentSettings();
ClearMidiContentSettings();
ClearPendingProtocolHandler();
......
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