2015-12-04 20:15:10 -08:00
|
|
|
description: disable the google api key warning when those aren't found
|
2017-11-22 15:04:57 +00:00
|
|
|
author: Michael Gilbert <mgilbert@debian.org>
|
2015-12-04 20:15:10 -08:00
|
|
|
|
2022-02-03 12:38:47 -06:00
|
|
|
--- a/chrome/browser/ui/startup/infobar_utils.cc
|
|
|
|
|
+++ b/chrome/browser/ui/startup/infobar_utils.cc
|
2025-10-22 16:34:39 -05:00
|
|
|
@@ -188,10 +188,6 @@ void AddInfoBarsIfNecessary(BrowserWindo
|
2025-06-15 07:00:38 -05:00
|
|
|
infobars::ContentInfoBarManager* infobar_manager =
|
|
|
|
|
infobars::ContentInfoBarManager::FromWebContents(web_contents);
|
2019-07-30 19:00:28 -04:00
|
|
|
|
2025-06-15 07:00:38 -05:00
|
|
|
- if (!google_apis::HasAPIKeyConfigured()) {
|
|
|
|
|
- GoogleApiKeysInfoBarDelegate::Create(infobar_manager);
|
|
|
|
|
- }
|
2021-01-14 00:27:59 -06:00
|
|
|
-
|
2025-06-15 07:00:38 -05:00
|
|
|
if (ObsoleteSystem::IsObsoleteNowOrSoon()) {
|
|
|
|
|
PrefService* local_state = g_browser_process->local_state();
|
|
|
|
|
if (!local_state ||
|