From: csagan5 <32685696+csagan5@users.noreply.github.com> Date: Fri, 23 Jul 2021 15:05:19 +0200 Subject: Do not build API keys infobar License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html --- chrome/browser/ui/BUILD.gn | 2 -- chrome/browser/ui/startup/infobar_utils.cc | 3 --- 2 files changed, 5 deletions(-) diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn --- a/chrome/browser/ui/BUILD.gn +++ b/chrome/browser/ui/BUILD.gn @@ -1388,8 +1388,6 @@ static_library("ui") { "singleton_tabs.h", "startup/automation_infobar_delegate.cc", "startup/automation_infobar_delegate.h", - "startup/google_api_keys_infobar_delegate.cc", - "startup/google_api_keys_infobar_delegate.h", "startup/infobar_utils.cc", "startup/infobar_utils.h", "startup/launch_mode_recorder.cc", diff --git a/chrome/browser/ui/startup/infobar_utils.cc b/chrome/browser/ui/startup/infobar_utils.cc --- a/chrome/browser/ui/startup/infobar_utils.cc +++ b/chrome/browser/ui/startup/infobar_utils.cc @@ -139,9 +139,6 @@ void AddInfoBarsIfNecessary(Browser* browser, infobars::ContentInfoBarManager* infobar_manager = infobars::ContentInfoBarManager::FromWebContents(web_contents); - if (!google_apis::HasAPIKeyConfigured()) - GoogleApiKeysInfoBarDelegate::Create(infobar_manager); - if (ObsoleteSystem::IsObsoleteNowOrSoon()) { PrefService* local_state = g_browser_process->local_state(); if (!local_state || -- 2.25.1