From 1c4c3bf963f332f8e1dce09e68ecbb438b9e6c11 Mon Sep 17 00:00:00 2001 From: "rsesek@chromium.org" Date: Wed, 13 Jun 2012 18:09:34 +0000 Subject: [Mac] Only show the 10.5 deprecation infobar once a week. Also fixes a bug where it wouldn't display at all because OS_MACOSX was not defined. Fixed by including build_config.h. BUG=130351 TEST=On Leopard, open and see an infobar that 10.5 is deprecated. Quit and relaunch and it's not there. Wait a week and it will be again. Review URL: https://chromiumcodereview.appspot.com/10543128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141918 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/startup/obsolete_os_prompt.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'chrome/browser/ui/startup/obsolete_os_prompt.h') diff --git a/chrome/browser/ui/startup/obsolete_os_prompt.h b/chrome/browser/ui/startup/obsolete_os_prompt.h index fd5e7cf..ce62a20 100644 --- a/chrome/browser/ui/startup/obsolete_os_prompt.h +++ b/chrome/browser/ui/startup/obsolete_os_prompt.h @@ -6,10 +6,19 @@ #define CHROME_BROWSER_UI_STARTUP_OBSOLETE_OS_PROMPT_H_ #pragma once +#include "build/build_config.h" + class Browser; +class PrefService; namespace browser { +#if defined(OS_MACOSX) +// Registers the Mac-specific preference about when to show obsolete OS +// prompts. +void RegisterObsoleteOSInfobarPrefs(PrefService* local_state); +#endif + // Shows a warning notification in |browser| that the app is being run on an // unsupported operating system. void ShowObsoleteOSPrompt(Browser* browser); -- cgit v1.1