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

Unified Diff: chrome/browser/profiles/profile_info_cache.cc

Issue 8226002: Multi-Profiles: Initialize sync user name when adding profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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/browser/profiles/profile_info_cache.cc
diff --git a/chrome/browser/profiles/profile_info_cache.cc b/chrome/browser/profiles/profile_info_cache.cc
index 15acb5188ff299871f4fde7cd5d5d77af99ff913..a876404a6fe5f8eabe23614a6c80fa169ae86841 100644
--- a/chrome/browser/profiles/profile_info_cache.cc
+++ b/chrome/browser/profiles/profile_info_cache.cc
@@ -97,6 +97,7 @@ ProfileInfoCache::~ProfileInfoCache() {
void ProfileInfoCache::AddProfileToCache(const FilePath& profile_path,
const string16& name,
+ const string16& username,
size_t icon_index) {
std::string key = CacheKeyFromProfilePath(profile_path);
DictionaryPrefUpdate update(prefs_, prefs::kProfileInfoCache);
@@ -104,6 +105,7 @@ void ProfileInfoCache::AddProfileToCache(const FilePath& profile_path,
scoped_ptr<DictionaryValue> info(new DictionaryValue);
info->SetString(kNameKey, name);
+ info->SetString(kUserNameKey, username);
info->SetString(kAvatarIconKey, GetDefaultAvatarIconUrl(icon_index));
cache->Set(key, info.release());
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.h ('k') | chrome/browser/profiles/profile_info_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698