OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/format_macros.h" | 7 #include "base/format_macros.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 IDR_PROFILE_AVATAR_0, | 32 IDR_PROFILE_AVATAR_0, |
33 IDR_PROFILE_AVATAR_1, | 33 IDR_PROFILE_AVATAR_1, |
34 IDR_PROFILE_AVATAR_2, | 34 IDR_PROFILE_AVATAR_2, |
35 IDR_PROFILE_AVATAR_3, | 35 IDR_PROFILE_AVATAR_3, |
36 IDR_PROFILE_AVATAR_4, | 36 IDR_PROFILE_AVATAR_4, |
37 IDR_PROFILE_AVATAR_5, | 37 IDR_PROFILE_AVATAR_5, |
38 IDR_PROFILE_AVATAR_6, | 38 IDR_PROFILE_AVATAR_6, |
39 IDR_PROFILE_AVATAR_7, | 39 IDR_PROFILE_AVATAR_7, |
40 IDR_PROFILE_AVATAR_8, | 40 IDR_PROFILE_AVATAR_8, |
41 IDR_PROFILE_AVATAR_9, | 41 IDR_PROFILE_AVATAR_9, |
| 42 IDR_PROFILE_AVATAR_10, |
| 43 IDR_PROFILE_AVATAR_11, |
| 44 IDR_PROFILE_AVATAR_12, |
| 45 IDR_PROFILE_AVATAR_13, |
| 46 IDR_PROFILE_AVATAR_14, |
| 47 IDR_PROFILE_AVATAR_15, |
| 48 IDR_PROFILE_AVATAR_16, |
| 49 IDR_PROFILE_AVATAR_17, |
| 50 IDR_PROFILE_AVATAR_18, |
| 51 IDR_PROFILE_AVATAR_19, |
42 }; | 52 }; |
43 | 53 |
44 const size_t kDefaultAvatarIconsCount = arraysize(kDefaultAvatarIconResources); | 54 const size_t kDefaultAvatarIconsCount = arraysize(kDefaultAvatarIconResources); |
45 | 55 |
46 } // namespace | 56 } // namespace |
47 | 57 |
48 ProfileInfoCache::ProfileInfoCache(PrefService* prefs, | 58 ProfileInfoCache::ProfileInfoCache(PrefService* prefs, |
49 const FilePath& user_data_dir) | 59 const FilePath& user_data_dir) |
50 : prefs_(prefs), | 60 : prefs_(prefs), |
51 user_data_dir_(user_data_dir) { | 61 user_data_dir_(user_data_dir) { |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 if (key_compare < 0) | 293 if (key_compare < 0) |
284 return sorted_keys_.begin() + i; | 294 return sorted_keys_.begin() + i; |
285 } | 295 } |
286 } | 296 } |
287 return sorted_keys_.end(); | 297 return sorted_keys_.end(); |
288 } | 298 } |
289 | 299 |
290 void ProfileInfoCache::RegisterPrefs(PrefService* prefs) { | 300 void ProfileInfoCache::RegisterPrefs(PrefService* prefs) { |
291 prefs->RegisterDictionaryPref(prefs::kProfileInfoCache); | 301 prefs->RegisterDictionaryPref(prefs::kProfileInfoCache); |
292 } | 302 } |
OLD | NEW |