Commit e95e7235 authored by Xinghui Lu's avatar Xinghui Lu Committed by Commit Bot

Remove Gmail password check from ShowInterstitial

Interstitials are only shown for GSUITE and enterprise passwords.

Bug: 1012084
Change-Id: I79dd08d39168d7fb034575915243f568a77d4622
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1845915
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Auto-Submit: Xinghui Lu <xinghuilu@chromium.org>
Reviewed-by: default avatarDaniel Rubery <drubery@chromium.org>
Reviewed-by: default avatarBettina Dea <bdea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#707200}
parent caad7615
......@@ -455,15 +455,13 @@ void ChromePasswordProtectionService::OnModalWarningShownForEnterprisePassword(
void ChromePasswordProtectionService::ShowInterstitial(
content::WebContents* web_contents,
ReusedPasswordAccountType password_type) {
DCHECK(password_type.account_type() == ReusedPasswordAccountType::GMAIL ||
password_type.account_type() ==
DCHECK(password_type.account_type() ==
ReusedPasswordAccountType::NON_GAIA_ENTERPRISE ||
password_type.account_type() == ReusedPasswordAccountType::GSUITE);
// Exit fullscreen if this |web_contents| is showing in fullscreen mode.
if (web_contents->IsFullscreenForCurrentTab())
web_contents->ExitFullscreen(/*will_cause_resize=*/true);
GURL trigger_url = web_contents->GetLastCommittedURL();
content::OpenURLParams params(
GURL(chrome::kChromeUIResetPasswordURL), content::Referrer(),
WindowOpenDisposition::NEW_FOREGROUND_TAB, ui::PAGE_TRANSITION_LINK,
......
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