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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards | 66 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards |
67 // compatibility. | 67 // compatibility. |
68 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; | 68 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; |
69 | 69 |
70 // A string pref whose values is one of the values defined by | 70 // A string pref whose values is one of the values defined by |
71 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and | 71 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and |
72 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during | 72 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during |
73 // shutdown. Used to determine the exit type the last time the profile was open. | 73 // shutdown. Used to determine the exit type the last time the profile was open. |
74 const char kSessionExitType[] = "profile.exit_type"; | 74 const char kSessionExitType[] = "profile.exit_type"; |
75 | 75 |
| 76 // The last time that the site engagement service recorded an engagement event |
| 77 // for this profile for any URL. Recorded only during shutdown. Used to prevent |
| 78 // the service from decaying engagement when a user does not use Chrome at all |
| 79 // for an extended period of time. |
| 80 const char kSiteEngagementLastUpdateTime[] = "profile.last_engagement_time"; |
| 81 |
76 // An integer pref. Holds one of several values: | 82 // An integer pref. Holds one of several values: |
77 // 0: unused, previously indicated to open the homepage on startup | 83 // 0: unused, previously indicated to open the homepage on startup |
78 // 1: restore the last session. | 84 // 1: restore the last session. |
79 // 2: this was used to indicate a specific session should be restored. It is | 85 // 2: this was used to indicate a specific session should be restored. It is |
80 // no longer used, but saved to avoid conflict with old preferences. | 86 // no longer used, but saved to avoid conflict with old preferences. |
81 // 3: unused, previously indicated the user wants to restore a saved session. | 87 // 3: unused, previously indicated the user wants to restore a saved session. |
82 // 4: restore the URLs defined in kURLsToRestoreOnStartup. | 88 // 4: restore the URLs defined in kURLsToRestoreOnStartup. |
83 // 5: open the New Tab Page on startup. | 89 // 5: open the New Tab Page on startup. |
84 const char kRestoreOnStartup[] = "session.restore_on_startup"; | 90 const char kRestoreOnStartup[] = "session.restore_on_startup"; |
85 | 91 |
(...skipping 2134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2220 const char kMediaRouterEnableCloudServices[] = | 2226 const char kMediaRouterEnableCloudServices[] = |
2221 "media_router.cloudservices.enabled"; | 2227 "media_router.cloudservices.enabled"; |
2222 #endif // defined(GOOGLE_CHROME_BUILD) | 2228 #endif // defined(GOOGLE_CHROME_BUILD) |
2223 // Whether or not the Media Router first run flow has been acknowledged by the | 2229 // Whether or not the Media Router first run flow has been acknowledged by the |
2224 // user. | 2230 // user. |
2225 const char kMediaRouterFirstRunFlowAcknowledged[] = | 2231 const char kMediaRouterFirstRunFlowAcknowledged[] = |
2226 "media_router.firstrunflow.acknowledged"; | 2232 "media_router.firstrunflow.acknowledged"; |
2227 #endif | 2233 #endif |
2228 | 2234 |
2229 } // namespace prefs | 2235 } // namespace prefs |
OLD | NEW |