Lines Matching refs:cache
257 const ProfileInfoCache& cache =
259 const size_t icon_index = cache.ChooseAvatarIconIndexForNewProfile();
262 profile_info.SetString("name", cache.ChooseNameForNewProfile(icon_index));
276 const ProfileInfoCache& cache =
279 size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath());
282 cache.GetGAIAPictureOfProfileAtIndex(profile_index);
295 default_name_list.AppendString(cache.ChooseNameForNewProfile(i));
304 const ProfileInfoCache& cache =
307 for (size_t i = 0, e = cache.GetNumberOfProfiles(); i < e; ++i) {
309 base::UTF16ToUTF8(cache.GetNameOfProfileAtIndex(i)), true);
341 // Updating the profile preferences will cause the cache to be updated.
420 ProfileInfoCache& cache =
422 size_t profile_index = cache.GetIndexOfProfileWithPath(profile_file_path);
425 base::string16 gaia_name = cache.GetNameOfProfileAtIndex(profile_index);
444 const ProfileInfoCache& cache =
446 size_t profile_index = cache.GetIndexOfProfileWithPath(profile_file_path);
451 if (cache.GetNumberOfProfiles() <= 1)
455 cache.GetPathOfProfileAtIndex(profile_index);