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

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

Issue 14137032: Create profile .ico file on profile creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rework Created 7 years, 6 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
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 #include "chrome/common/pref_font_webkit_names.h" 8 #include "chrome/common/pref_font_webkit_names.h"
9 9
10 namespace prefs { 10 namespace prefs {
(...skipping 29 matching lines...) Expand all
40 40
41 // Stores the email address associated with the google account of the custodian 41 // Stores the email address associated with the google account of the custodian
42 // of the managed user, set when the managed user is created. 42 // of the managed user, set when the managed user is created.
43 const char kManagedUserCustodianEmail[] = "profile.managed.custodian_email"; 43 const char kManagedUserCustodianEmail[] = "profile.managed.custodian_email";
44 44
45 // Stores the display name associated with the google account of the custodian 45 // Stores the display name associated with the google account of the custodian
46 // of the managed user, updated (if possible) each time the managed user 46 // of the managed user, updated (if possible) each time the managed user
47 // starts a session. 47 // starts a session.
48 const char kManagedUserCustodianName[] = "profile.managed.custodian_name"; 48 const char kManagedUserCustodianName[] = "profile.managed.custodian_name";
49 49
50 // An integer that keeps track of the profile icon version. This allows us to
51 // determine the state of the profile icon for icon format changes.
52 const char kProfileIconVersion[] = "profile.icon_version";
53
50 // Used to determine if the last session exited cleanly. Set to false when 54 // Used to determine if the last session exited cleanly. Set to false when
51 // first opened, and to true when closing. On startup if the value is false, 55 // first opened, and to true when closing. On startup if the value is false,
52 // it means the profile didn't exit cleanly. 56 // it means the profile didn't exit cleanly.
53 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards 57 // DEPRECATED: this is replaced by kSessionExitType and exists for backwards
54 // compatability. 58 // compatability.
55 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; 59 const char kSessionExitedCleanly[] = "profile.exited_cleanly";
56 60
57 // A string pref whose values is one of the values defined by 61 // A string pref whose values is one of the values defined by
58 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and 62 // |ProfileImpl::kPrefExitTypeXXX|. Set to |kPrefExitTypeCrashed| on startup and
59 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during 63 // one of |kPrefExitTypeNormal| or |kPrefExitTypeSessionEnded| during
60 // shutdown. Used to determine the exit type the last time the profile was open. 64 // shutdown. Used to determine the exit type the last time the profile was open.
61 const char kSessionExitType[] = "profile.exit_type"; 65 const char kSessionExitType[] = "profile.exit_type";
62 66
63 // An integer pref. Holds one of several values: 67 // An integer pref. Holds one of several values:
64 // 0: (deprecated) open the homepage on startup. 68 // 0: (deprecated) open the homepage on startup.
65 // 1: restore the last session. 69 // 1: restore the last session.
66 // 2: this was used to indicate a specific session should be restored. It is 70 // 2: this was used to indicate a specific session should be restored. It is
67 // no longer used, but saved to avoid conflict with old preferences. 71 // no longer used, but saved to avoid conflict with old preferences.
68 // 3: unused, previously indicated the user wants to restore a saved session. 72 // 3: unused, previously indicated the user wants to restore a saved session.
69 // 4: restore the URLs defined in kURLsToRestoreOnStartup. 73 // 4: restore the URLs defined in kURLsToRestoreOnStartup.
70 // 5: open the New Tab Page on startup. 74 // 5: open the New Tab Page on startup.
71 const char kRestoreOnStartup[] = "session.restore_on_startup"; 75 const char kRestoreOnStartup[] = "session.restore_on_startup";
72 76
73 // The URLs to restore on startup or when the home button is pressed. The URLs
74 // are only restored on startup if kRestoreOnStartup is 4.
75 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup";
76
77 // A preference to keep track of whether we have already checked whether we 77 // A preference to keep track of whether we have already checked whether we
78 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4. 78 // need to migrate the user from kRestoreOnStartup=0 to kRestoreOnStartup=4.
79 // We only need to do this check once, on upgrade from m18 or lower to m19 or 79 // We only need to do this check once, on upgrade from m18 or lower to m19 or
80 // higher. 80 // higher.
81 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated"; 81 const char kRestoreOnStartupMigrated[] = "session.restore_on_startup_migrated";
82 82
83 // The URLs to restore on startup or when the home button is pressed. The URLs
84 // are only restored on startup if kRestoreOnStartup is 4.
85 const char kURLsToRestoreOnStartup[] = "session.urls_to_restore_on_startup";
86
83 // The application locale. 87 // The application locale.
84 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state 88 // For OS_CHROMEOS we maintain kApplicationLocale property in both local state
85 // and user's profile. Global property determines locale of login screen, 89 // and user's profile. Global property determines locale of login screen,
86 // while user's profile determines his personal locale preference. 90 // while user's profile determines his personal locale preference.
87 const char kApplicationLocale[] = "intl.app_locale"; 91 const char kApplicationLocale[] = "intl.app_locale";
88 #if defined(OS_CHROMEOS) 92 #if defined(OS_CHROMEOS)
89 // Locale preference of device' owner. ChromeOS device appears in this locale 93 // Locale preference of device' owner. ChromeOS device appears in this locale
90 // after startup/wakeup/signout. 94 // after startup/wakeup/signout.
91 const char kOwnerLocale[] = "intl.owner_locale"; 95 const char kOwnerLocale[] = "intl.owner_locale";
92 // Locale accepted by user. Non-syncable. 96 // Locale accepted by user. Non-syncable.
(...skipping 2409 matching lines...) Expand 10 before | Expand all | Expand 10 after
2502 2506
2503 // How often the bubble has been shown. 2507 // How often the bubble has been shown.
2504 extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown"; 2508 extern const char kModuleConflictBubbleShown[] = "module_conflict.bubble_shown";
2505 2509
2506 // A string pref for storing the salt used to compute the pepper device ID. 2510 // A string pref for storing the salt used to compute the pepper device ID.
2507 const char kDRMSalt[] = "settings.privacy.drm_salt"; 2511 const char kDRMSalt[] = "settings.privacy.drm_salt";
2508 // A boolean pref that enables the (private) pepper GetDeviceID() call. 2512 // A boolean pref that enables the (private) pepper GetDeviceID() call.
2509 const char kEnableDRM[] = "settings.privacy.drm_enabled"; 2513 const char kEnableDRM[] = "settings.privacy.drm_enabled";
2510 2514
2511 } // namespace prefs 2515 } // namespace prefs
OLDNEW
« chrome/browser/profiles/profile_shortcut_manager_win.cc ('K') | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698