google-api-warning.patch 674 B

12345678910111213141516
  1. description: disable the google api key warning when those aren't found
  2. author: Michael Gilbert <mgilbert@debian.org>
  3. --- a/chrome/browser/ui/startup/infobar_utils.cc
  4. +++ b/chrome/browser/ui/startup/infobar_utils.cc
  5. @@ -154,10 +154,6 @@ void AddInfoBarsIfNecessary(Browser* bro
  6. infobars::ContentInfoBarManager* infobar_manager =
  7. infobars::ContentInfoBarManager::FromWebContents(web_contents);
  8. - if (!google_apis::HasAPIKeyConfigured()) {
  9. - GoogleApiKeysInfoBarDelegate::Create(infobar_manager);
  10. - }
  11. -
  12. if (ObsoleteSystem::IsObsoleteNowOrSoon()) {
  13. PrefService* local_state = g_browser_process->local_state();
  14. if (!local_state ||