OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/pref_names.h" | 5 #include "chrome/common/pref_names.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "chrome/common/pref_font_webkit_names.h" | 9 #include "chrome/common/pref_font_webkit_names.h" |
10 | 10 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards | 71 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards |
72 // compatibility. | 72 // compatibility. |
73 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; | 73 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; |
74 | 74 |
75 // A string pref whose values is one of the values defined by | 75 // A string pref whose values is one of the values defined by |
76 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and | 76 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and |
77 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during | 77 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during |
78 // shutdown. Used to determine the exit type the last time the profile was open. | 78 // shutdown. Used to determine the exit type the last time the profile was open. |
79 const char kSessionExitType[] = "profile.exit_type"; | 79 const char kSessionExitType[] = "profile.exit_type"; |
80 | 80 |
| 81 // The last time that the site engagement service recorded an engagement event |
| 82 // for this profile for any URL. Recorded only during shutdown. Used to prevent |
| 83 // the service from decaying engagement when a user does not use Chrome at all |
| 84 // for an extended period of time. |
| 85 const char kSiteEngagementLastUpdateTime[] = "profile.last_engagement_time"; |
| 86 |
81 // An integer pref. Holds one of several values: | 87 // An integer pref. Holds one of several values: |
82 // 0: unused, previously indicated to open the homepage on startup | 88 // 0: unused, previously indicated to open the homepage on startup |
83 // 1: restore the last session. | 89 // 1: restore the last session. |
84 // 2: this was used to indicate a specific session should be restored. It is | 90 // 2: this was used to indicate a specific session should be restored. It is |
85 // no longer used, but saved to avoid conflict with old preferences. | 91 // no longer used, but saved to avoid conflict with old preferences. |
86 // 3: unused, previously indicated the user wants to restore a saved session. | 92 // 3: unused, previously indicated the user wants to restore a saved session. |
87 // 4: restore the URLs defined in kURLsToRestoreOnStartup. | 93 // 4: restore the URLs defined in kURLsToRestoreOnStartup. |
88 // 5: open the New Tab Page on startup. | 94 // 5: open the New Tab Page on startup. |
89 const char kRestoreOnStartup[] = "session.restore_on_startup"; | 95 const char kRestoreOnStartup[] = "session.restore_on_startup"; |
90 | 96 |
(...skipping 2158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2249 #endif | 2255 #endif |
2250 | 2256 |
2251 // The base64-encoded representation of the public key to use to validate origin | 2257 // The base64-encoded representation of the public key to use to validate origin |
2252 // trial token signatures. | 2258 // trial token signatures. |
2253 const char kOriginTrialPublicKey[] = "origin_trials.public_key"; | 2259 const char kOriginTrialPublicKey[] = "origin_trials.public_key"; |
2254 | 2260 |
2255 // A list of origin trial features to disable by policy. | 2261 // A list of origin trial features to disable by policy. |
2256 const char kOriginTrialDisabledFeatures[] = "origin_trials.disabled_features"; | 2262 const char kOriginTrialDisabledFeatures[] = "origin_trials.disabled_features"; |
2257 | 2263 |
2258 } // namespace prefs | 2264 } // namespace prefs |
OLD | NEW |