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/common/pref_names.cc | 7 +++++++ chrome/common/pref_names.h | 4 ++++ 2 files changed, 11 insertions(+) (limited to 'chrome/common') diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc index 32a2837..cf08d3c 100644 --- a/chrome/common/pref_names.cc +++ b/chrome/common/pref_names.cc @@ -1939,4 +1939,11 @@ const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; // |network_profile.warnings_left| after a silence period. const char kNetworkProfileLastWarningTime[] = "network_profile.last_warning_time"; + +#if defined(OS_MACOSX) +// A timestamp of when the obsolete OS infobar was last shown to a user on 10.5. +const char kMacLeopardObsoleteInfobarLastShown[] = + "mac_105_obsolete_infobar_last_shown"; +#endif // defined(OS_MACOSX) + } // namespace prefs diff --git a/chrome/common/pref_names.h b/chrome/common/pref_names.h index fd10825..15b2e04 100644 --- a/chrome/common/pref_names.h +++ b/chrome/common/pref_names.h @@ -731,6 +731,10 @@ extern const char kInManagedMode[]; extern const char kNetworkProfileWarningsLeft[]; extern const char kNetworkProfileLastWarningTime[]; +#if defined(OS_MACOSX) +extern const char kMacLeopardObsoleteInfobarLastShown[]; +#endif // defined(OS_MACOSX) + } // namespace prefs #endif // CHROME_COMMON_PREF_NAMES_H_ -- cgit v1.1