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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/pref_names.cc
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc
index 81ce286b34b6f3b619fa79e23b2f67f8daa59b3e..ed6fc25b5d1807c0a402378d40bb4276d60994dd 100644
--- a/chrome/common/pref_names.cc
+++ b/chrome/common/pref_names.cc
@@ -1137,6 +1137,17 @@ const char kImportSavedPasswords[] = "import_saved_passwords";
// Profile avatar and name
const char kProfileAvatarIndex[] = "profile.avatar_index";
const char kProfileName[] = "profile.name";
+// Whether a profile is using a default avatar name (eg. Pickles or Person 1).
+// A value of -1 means the profile is using a default name without having
+// explicitely chosen it (i.e. it was assigned by default at profile creation),
+// 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
+// user specifically chose Pickles) and 0 means that the profile has a custom
+// name (i.e. Batman).
+const char kProfileUsingDefaultName[] = "profile.using_default_name";
+// Whether a profile is using an avatar without having explicitely chosen it
+// (i.e. was assigned by default by legacy profile creation).
+const char kProfileUsingDefaultAvatar[] = "profile.using_default_avatar";
+const char kProfileUsingGAIAAvatar[] = "profile.using_gaia_avatar";
// The supervised user ID.
const char kSupervisedUserId[] = "profile.managed_user_id";
« 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