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

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

Issue 884923004: [Profiles] Delete test-only method from the ProfileInfoCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 bcb7ee27f25cbe72bb0b9ea2ecbdff596f4debf1..ed54de2ff86858e906946ab7d97c51e9d1c8c4f6 100644
--- a/chrome/browser/profiles/profile_info_cache.cc
+++ b/chrome/browser/profiles/profile_info_cache.cc
@@ -857,23 +857,6 @@ const base::FilePath& ProfileInfoCache::GetUserDataDir() const {
}
// static
-std::vector<base::string16> ProfileInfoCache::GetProfileNames() {
- std::vector<base::string16> names;
- PrefService* local_state = g_browser_process->local_state();
- const base::DictionaryValue* cache = local_state->GetDictionary(
- prefs::kProfileInfoCache);
- base::string16 name;
- for (base::DictionaryValue::Iterator it(*cache); !it.IsAtEnd();
- it.Advance()) {
- const base::DictionaryValue* info = NULL;
- it.value().GetAsDictionary(&info);
- info->GetString(kNameKey, &name);
- names.push_back(name);
- }
- return names;
-}
-
-// static
void ProfileInfoCache::RegisterPrefs(PrefRegistrySimple* registry) {
registry->RegisterDictionaryPref(prefs::kProfileInfoCache);
}
« 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