OLD | NEW |
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/browser/profiles/profile_info_cache.h" | 5 #include "chrome/browser/profiles/profile_info_cache.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/i18n/case_conversion.h" | 10 #include "base/i18n/case_conversion.h" |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 ++it) { | 807 ++it) { |
808 const base::DictionaryValue* info = NULL; | 808 const base::DictionaryValue* info = NULL; |
809 cache->GetDictionary(*it, &info); | 809 cache->GetDictionary(*it, &info); |
810 info->GetString(kNameKey, &name); | 810 info->GetString(kNameKey, &name); |
811 names.push_back(name); | 811 names.push_back(name); |
812 } | 812 } |
813 return names; | 813 return names; |
814 } | 814 } |
815 | 815 |
816 // static | 816 // static |
817 void ProfileInfoCache::RegisterPrefs(PrefService* prefs) { | 817 void ProfileInfoCache::RegisterPrefs(PrefServiceSimple* prefs) { |
818 prefs->RegisterDictionaryPref(prefs::kProfileInfoCache); | 818 prefs->RegisterDictionaryPref(prefs::kProfileInfoCache); |
819 } | 819 } |
OLD | NEW |