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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards | 68 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards |
69 // compatibility. | 69 // compatibility. |
70 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; | 70 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; |
71 | 71 |
72 // A string pref whose values is one of the values defined by | 72 // A string pref whose values is one of the values defined by |
73 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and | 73 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and |
74 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during | 74 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during |
75 // shutdown. Used to determine the exit type the last time the profile was open. | 75 // shutdown. Used to determine the exit type the last time the profile was open. |
76 const char kSessionExitType[] = "profile.exit_type"; | 76 const char kSessionExitType[] = "profile.exit_type"; |
77 | 77 |
| 78 // The last time that the site engagement service recorded an engagement event |
| 79 // for this profile for any URL. Recorded only during shutdown. Used to prevent |
| 80 // the service from decaying engagement when a user does not use Chrome at all |
| 81 // for an extended period of time. |
| 82 const char kSiteEngagementLastUpdateTime[] = "profile.last_engagement_time"; |
| 83 |
78 // An integer pref. Holds one of several values: | 84 // An integer pref. Holds one of several values: |
79 // 0: unused, previously indicated to open the homepage on startup | 85 // 0: unused, previously indicated to open the homepage on startup |
80 // 1: restore the last session. | 86 // 1: restore the last session. |
81 // 2: this was used to indicate a specific session should be restored. It is | 87 // 2: this was used to indicate a specific session should be restored. It is |
82 // no longer used, but saved to avoid conflict with old preferences. | 88 // no longer used, but saved to avoid conflict with old preferences. |
83 // 3: unused, previously indicated the user wants to restore a saved session. | 89 // 3: unused, previously indicated the user wants to restore a saved session. |
84 // 4: restore the URLs defined in kURLsToRestoreOnStartup. | 90 // 4: restore the URLs defined in kURLsToRestoreOnStartup. |
85 // 5: open the New Tab Page on startup. | 91 // 5: open the New Tab Page on startup. |
86 const char kRestoreOnStartup[] = "session.restore_on_startup"; | 92 const char kRestoreOnStartup[] = "session.restore_on_startup"; |
87 | 93 |
(...skipping 2150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2238 // user. | 2244 // user. |
2239 const char kMediaRouterFirstRunFlowAcknowledged[] = | 2245 const char kMediaRouterFirstRunFlowAcknowledged[] = |
2240 "media_router.firstrunflow.acknowledged"; | 2246 "media_router.firstrunflow.acknowledged"; |
2241 #endif | 2247 #endif |
2242 | 2248 |
2243 // The base64-encoded representation of the public key to use to validate origin | 2249 // The base64-encoded representation of the public key to use to validate origin |
2244 // trial token signatures. | 2250 // trial token signatures. |
2245 const char kOriginTrialPublicKey[] = "origin_trials.public_key"; | 2251 const char kOriginTrialPublicKey[] = "origin_trials.public_key"; |
2246 | 2252 |
2247 } // namespace prefs | 2253 } // namespace prefs |
OLD | NEW |