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

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

Issue 23528008: Don't use path expansion for profile dictionaries in LocalState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 7837f6892048879b952aa4b59205bdb5f37e9fe4..49e7365dcaaad37cd8a2a3c9620152a24de7231a 100644
--- a/chrome/browser/profiles/profile_info_cache.cc
+++ b/chrome/browser/profiles/profile_info_cache.cc
@@ -215,7 +215,7 @@ void ProfileInfoCache::AddProfileToCache(const base::FilePath& profile_path,
// Default value for whether background apps are running is false.
info->SetBoolean(kBackgroundAppsKey, false);
info->SetString(kManagedUserId, managed_user_id);
- cache->Set(key, info.release());
+ cache->SetWithoutPathExpansion(key, info.release());
sorted_keys_.insert(FindPositionForProfile(key, name), key);
@@ -784,7 +784,7 @@ const DictionaryValue* ProfileInfoCache::GetInfoForProfileAtIndex(
const DictionaryValue* cache =
prefs_->GetDictionary(prefs::kProfileInfoCache);
const DictionaryValue* info = NULL;
- cache->GetDictionary(sorted_keys_[index], &info);
+ cache->GetDictionaryWithoutPathExpansion(sorted_keys_[index], &info);
return info;
}
@@ -792,7 +792,7 @@ void ProfileInfoCache::SetInfoForProfileAtIndex(size_t index,
DictionaryValue* info) {
DictionaryPrefUpdate update(prefs_, prefs::kProfileInfoCache);
DictionaryValue* cache = update.Get();
- cache->Set(sorted_keys_[index], info);
+ cache->SetWithoutPathExpansion(sorted_keys_[index], info);
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED,
« chrome/browser/prefs/pref_metrics_service.cc ('K') | « chrome/browser/prefs/pref_metrics_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698