Commit 0fdb9cb4 authored by Mihai Sardarescu's avatar Mihai Sardarescu Committed by Commit Bot

Do not show the inforbar.

Bug: None
Change-Id: I02dd687be094041cbccafd4618170fc8863e8b1f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2428924
Commit-Queue: Mihai Sardarescu <msarda@chromium.org>
Reviewed-by: default avatarJochen Eisinger <jochen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811749}
parent 91f76583
...@@ -752,10 +752,8 @@ void StartupBrowserCreatorImpl::AddInfoBarsIfNecessary( ...@@ -752,10 +752,8 @@ void StartupBrowserCreatorImpl::AddInfoBarsIfNecessary(
InfoBarService* infobar_service = InfoBarService* infobar_service =
InfoBarService::FromWebContents(web_contents); InfoBarService::FromWebContents(web_contents);
if (!google_apis::HasAPIKeyConfigured() || if (!google_apis::HasAPIKeyConfigured())
!google_apis::HasOAuthClientConfigured()) {
GoogleApiKeysInfoBarDelegate::Create(infobar_service); GoogleApiKeysInfoBarDelegate::Create(infobar_service);
}
if (ObsoleteSystem::IsObsoleteNowOrSoon()) { if (ObsoleteSystem::IsObsoleteNowOrSoon()) {
PrefService* local_state = g_browser_process->local_state(); PrefService* local_state = g_browser_process->local_state();
......
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