summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-13 18:09:34 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-13 18:09:34 +0000
commit1c4c3bf963f332f8e1dce09e68ecbb438b9e6c11 (patch)
tree30daadccd61c5b871f5734869fd784d7a5d26134 /chrome/common
parentfae288af7e77e81be9f6e0e64ac2fb1fe80e6abf (diff)
downloadchromium_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/common')
-rw-r--r--chrome/common/pref_names.cc7
-rw-r--r--chrome/common/pref_names.h4
2 files changed, 11 insertions, 0 deletions
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_