diff options
| author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-13 18:09:34 +0000 |
|---|---|---|
| committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-13 18:09:34 +0000 |
| commit | 1c4c3bf963f332f8e1dce09e68ecbb438b9e6c11 (patch) | |
| tree | 30daadccd61c5b871f5734869fd784d7a5d26134 /chrome/browser/ui/startup/obsolete_os_prompt.h | |
| parent | fae288af7e77e81be9f6e0e64ac2fb1fe80e6abf (diff) | |
| download | chromium_src-1c4c3bf963f332f8e1dce09e68ecbb438b9e6c11.zip chromium_src-1c4c3bf963f332f8e1dce09e68ecbb438b9e6c11.tar.gz chromium_src-1c4c3bf963f332f8e1dce09e68ecbb438b9e6c11.tar.bz2 | |
[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
Diffstat (limited to 'chrome/browser/ui/startup/obsolete_os_prompt.h')
| -rw-r--r-- | chrome/browser/ui/startup/obsolete_os_prompt.h | 9 |
1 files changed, 9 insertions, 0 deletions
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); |
