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

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

Issue 11499012: Add policy for limiting the session length (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Not sure why the patch is not applying - bot source out of sync with ToT? Created 8 years 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 | Annotate | Revision Log
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/basictypes.h" 7 #include "base/basictypes.h"
8 8
9 namespace prefs { 9 namespace prefs {
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // The URLs to restore on startup or when the home button is pressed. The URLs 59 // The URLs to restore on startup or when the home button is pressed. The URLs
60 // are only restored on startup if kRestoreOnStartup is 4. 60 // are only restored on startup if kRestoreOnStartup is 4.
61 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup"; 61 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup";
62 62
63 // A preference to keep track of whether we have already checked whether we 63 // A preference to keep track of whether we have already checked whether we
64 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. 64 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
65 // We only need to do this check once, on upgrade from m18 or lower to m19 or 65 // We only need to do this check once, on upgrade from m18 or lower to m19 or
66 // higher. 66 // higher.
67 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; 67 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
68 68
69 #if defined(OS_CHROMEOS)
Mattias Nissler (ping if slow) 2012/12/12 10:12:57 ditto
bartfab (slow) 2012/12/13 16:22:48 Done.
70 // A preference to keep track of the session start time. The value is set
71 // after login. When the browser restarts after a crash, the pref value is not
72 // changed unless it appears corrupted (value unset, value lying in the future,
73 // zero value).
74 const char kSessionStartTime[] = "session.start_time";
75
76 // Holds the maximum session time in milliseconds. If this pref is set, the
77 // user is logged out when the maximum session time is reached. The user is
78 // informed about the remaining time by a countdown timer shown in the ash
79 // system tray.
80 const char kSessionLengthLimit[] = "session.length_limit";
81 #endif
82
69 // Disables screenshot accelerators and extension APIs. 83 // Disables screenshot accelerators and extension APIs.
70 // This setting resides both in profile prefs and local state. Accelerator 84 // This setting resides both in profile prefs and local state. Accelerator
71 // handling code reads local state, while extension APIs use profile pref. 85 // handling code reads local state, while extension APIs use profile pref.
72 const char kDisableScreenshots[] = "disable_screenshots"; 86 const char kDisableScreenshots[] = "disable_screenshots";
73 87
74 // The application locale. 88 // The application locale.
75 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state 89 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
76 // and user's profile. Global property determines locale of login screen, 90 // and user's profile. Global property determines locale of login screen,
77 // while user's profile determines his personal locale preference. 91 // while user's profile determines his personal locale preference.
78 const char kApplicationLocale[] = "intl.app_locale"; 92 const char kApplicationLocale[] = "intl.app_locale";
(...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after
2175 // 64-bit serialization of the time last policy usage statistics were collected 2189 // 64-bit serialization of the time last policy usage statistics were collected
2176 // by UMA_HISTOGRAM_ENUMERATION. 2190 // by UMA_HISTOGRAM_ENUMERATION.
2177 const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update"; 2191 const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update";
2178 2192
2179 #if defined(OS_CHROMEOS) 2193 #if defined(OS_CHROMEOS)
2180 // The RLZ brand code, if enabled. 2194 // The RLZ brand code, if enabled.
2181 const char kRLZBrand[] = "rlz.brand"; 2195 const char kRLZBrand[] = "rlz.brand";
2182 #endif 2196 #endif
2183 2197
2184 } // namespace prefs 2198 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698