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

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

Issue 476993002: [Profiles] Fix the usage of custom/default names and avatars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | 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 #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 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 // browser on first run. 1130 // browser on first run.
1131 const char kImportSearchEngine[] = "import_search_engine"; 1131 const char kImportSearchEngine[] = "import_search_engine";
1132 1132
1133 // Boolean that specifies whether to import the saved passwords from the default 1133 // Boolean that specifies whether to import the saved passwords from the default
1134 // browser on first run. 1134 // browser on first run.
1135 const char kImportSavedPasswords[] = "import_saved_passwords"; 1135 const char kImportSavedPasswords[] = "import_saved_passwords";
1136 1136
1137 // Profile avatar and name 1137 // Profile avatar and name
1138 const char kProfileAvatarIndex[] = "profile.avatar_index"; 1138 const char kProfileAvatarIndex[] = "profile.avatar_index";
1139 const char kProfileName[] = "profile.name"; 1139 const char kProfileName[] = "profile.name";
1140 // Whether a profile is using a default avatar name (eg. Pickles or Person 1).
1141 // A value of -1 means the profile is using a default name without having
1142 // explicitely chosen it (i.e. it was assigned by default at profile creation),
1143 // 1 means that the profile is using a default name having chosen it (i.e. the
Bernhard Bauer 2014/08/15 14:39:22 Can you define an enum for these values?
noms (inactive) 2014/08/15 16:22:47 Changed it to a bool. On 2014/08/15 14:39:22, Bern
1144 // user specifically chose Pickles) and 0 means that the profile has a custom
1145 // name (i.e. Batman).
1146 const char kProfileUsingDefaultName[] = "profile.using_default_name";
1147 // Whether a profile is using an avatar without having explicitely chosen it
1148 // (i.e. was assigned by default by legacy profile creation).
1149 const char kProfileUsingDefaultAvatar[] = "profile.using_default_avatar";
1150 const char kProfileUsingGAIAAvatar[] = "profile.using_gaia_avatar";
1140 1151
1141 // The supervised user ID. 1152 // The supervised user ID.
1142 const char kSupervisedUserId[] = "profile.managed_user_id"; 1153 const char kSupervisedUserId[] = "profile.managed_user_id";
1143 1154
1144 // 64-bit integer serialization of the base::Time when the user's GAIA info 1155 // 64-bit integer serialization of the base::Time when the user's GAIA info
1145 // was last updated. 1156 // was last updated.
1146 const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time"; 1157 const char kProfileGAIAInfoUpdateTime[] = "profile.gaia_info_update_time";
1147 1158
1148 // The URL from which the GAIA profile picture was downloaded. This is cached to 1159 // The URL from which the GAIA profile picture was downloaded. This is cached to
1149 // prevent the same picture from being downloaded multiple times. 1160 // prevent the same picture from being downloaded multiple times.
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
2333 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; 2344 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
2334 #endif 2345 #endif
2335 2346
2336 // Whether DNS Quick Check is disabled in proxy resolution. 2347 // Whether DNS Quick Check is disabled in proxy resolution.
2337 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; 2348 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
2338 2349
2339 // Whether Guest Mode is enabled within the browser. 2350 // Whether Guest Mode is enabled within the browser.
2340 const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled"; 2351 const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled";
2341 2352
2342 } // namespace prefs 2353 } // namespace prefs
OLDNEW
« chrome/browser/profiles/profile_info_cache.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