Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: chrome/common/pref_names.cc

Issue 2082953002: Prevent site engagement scores from decaying when Chrome isn't in use. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698