/external/chromium_org/chrome/browser/profiles/ |
H A D | profile_manager_unittest.cc | 144 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 145 size_t num_profiles = cache.GetNumberOfProfiles(); 147 cache.AddProfileToCache(path, profile_name, 149 EXPECT_EQ(num_profiles + 1, cache.GetNumberOfProfiles()); 333 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 334 EXPECT_EQ(0u, cache.GetNumberOfProfiles()); 339 EXPECT_EQ(1u, cache.GetNumberOfProfiles()); 341 EXPECT_TRUE(cache.IsOmittedProfileAtIndex(0)); 347 EXPECT_EQ(2u, cache.GetNumberOfProfiles()); 349 EXPECT_FALSE(cache 354 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 455 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 487 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 538 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 1003 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 1041 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 1087 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 1141 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 1214 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 1264 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local [all...] |
H A D | profile_shortcut_manager_win.cc | 214 // This invalidates the Windows icon cache and causes the icon changes to 713 const ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache(); local 714 size_t profile_index = cache.GetIndexOfProfileWithPath(profile_path); 715 DCHECK_LT(profile_index, cache.GetNumberOfProfiles()); 719 if (cache.GetNumberOfProfiles() > 1) 720 shortcut_profile_name = cache.GetNameOfProfileAtIndex(profile_index); 747 const ProfileInfoCache& cache = profile_manager_->GetProfileInfoCache(); local 750 const bool deleting_down_to_last_profile = (cache.GetNumberOfProfiles() == 1); 753 CreateOrUpdateShortcutsForProfileAtPath(cache.GetPathOfProfileAtIndex(0), 778 const ProfileInfoCache& cache local 795 ProfileInfoCache* cache = &profile_manager_->GetProfileInfoCache(); local [all...] |
H A D | profile_window.cc | 159 const ProfileInfoCache& cache = local 161 size_t index = cache.GetIndexOfProfileWithPath(profile_path_to_focus); 258 ProfileInfoCache& cache = local 263 cache.ChooseNameForNewProfile(placeholder_avatar_index), 293 ProfileInfoCache* cache = local 296 cache->SetProfileSigninRequiredAtIndex( 297 cache->GetIndexOfProfileWithPath(profile_path), true);
|
H A D | profiles_state.cc | 60 const ProfileInfoCache& cache = local 62 size_t index = cache.GetIndexOfProfileWithPath(profile_path); 73 const base::string16 profile_name = cache.GetNameOfProfileAtIndex(index); 74 const base::string16 email = cache.GetUserNameOfProfileAtIndex(index); 75 bool is_default_name = cache.ProfileIsUsingDefaultNameAtIndex(index) && 76 cache.IsDefaultProfileName(profile_name); 78 if (cache.GetNumberOfProfiles() == 1 && is_default_name) 101 const ProfileInfoCache& cache = local 103 size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); 107 if (new_profile_name == cache 167 const ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local [all...] |
/external/chromium_org/chrome/browser/safe_browsing/ |
H A D | client_side_detection_service_unittest.cc | 153 ClientSideDetectionService::PhishingCache& cache = csd_service_->cache_; local 159 cache[GURL("http://first.url.com/")] = 167 cache[GURL("http://second.url.com/")] = 175 cache[GURL("http://third.url.com/")] = 182 cache[GURL("http://fourth.url.com/")] = 187 // 3 elements should be in the cache, the first, third, and fourth. 188 EXPECT_EQ(3U, cache.size()); 189 EXPECT_TRUE(cache.find(GURL("http://first.url.com/")) != cache.end()); 190 EXPECT_TRUE(cache [all...] |
H A D | malware_details_unittest.cc | 96 void WriteToEntry(disk_cache::Backend* cache, const std::string& key, argument 100 int rv = cache->CreateEntry(key, &entry, cb.callback()); 103 rv = cache->OpenEntry(key, &entry, cb.callback()); 114 disk_cache::Backend* cache; local 117 GetCache()->GetBackend(&cache, cb.callback()); 120 WriteToEntry(cache, kMalwareURL, kMalwareHeaders, kMalwareData); 121 WriteToEntry(cache, kLandingURL, kLandingHeaders, kLandingData); 445 expected.set_complete(false); // Since the cache was missing. 526 // Tests the interaction with the HTTP cache. 543 // The cache collectio [all...] |
H A D | safe_browsing_database.cc | 281 // for |full_hash| is found in |cache|, with any matches appended to |results| 283 // cache lifetime of matches, expired matches will be discarded from |cache|. 284 bool GetCachedFullHash(std::map<SBPrefix, SBCachedFullHashResult>* cache, argument 290 citer = cache->find(full_hash.prefix); 291 if (citer == cache->end()) 297 cache->erase(citer); 654 // Used to determine cache expiration. 1100 // pending hashes, and the prefix miss cache in place.
|
/external/chromium_org/chrome/browser/signin/ |
H A D | local_auth_unittest.cc | 26 ProfileInfoCache& cache = local 28 EXPECT_EQ(1U, cache.GetNumberOfProfiles()); 29 EXPECT_EQ("", cache.GetLocalAuthCredentialsOfProfileAtIndex(0)); 39 std::string passhash = cache.GetLocalAuthCredentialsOfProfileAtIndex(0); 58 EXPECT_NE(passhash, cache.GetLocalAuthCredentialsOfProfileAtIndex(0));
|
H A D | signin_names_io_thread.cc | 26 const ProfileInfoCache& cache = manager->GetProfileInfoCache(); local 27 for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) { 28 base::string16 email = cache.GetUserNameOfProfileAtIndex(i);
|
H A D | signin_names_io_thread_unittest.cc | 67 ProfileInfoCache* cache = testing_profile_manager_.profile_info_cache(); local 68 const base::FilePath& user_data_dir = cache->GetUserDataDir(); 75 cache->AddProfileToCache(profile_dir, name, email, 0, std::string());
|
/external/chromium_org/chrome/browser/supervised_user/ |
H A D | supervised_user_service.cc | 879 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 880 size_t index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); 881 cache.SetIsOmittedProfileAtIndex(index, false);
|
H A D | supervised_user_service_browsertest.cc | 54 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 56 size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); 57 cache.SetIsOmittedProfileAtIndex(index, true); 58 ASSERT_TRUE(cache.IsOmittedProfileAtIndex(index)); 70 ASSERT_TRUE(cache.IsOmittedProfileAtIndex(index)); 78 EXPECT_FALSE(cache.IsOmittedProfileAtIndex(index)); 95 const ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 96 size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); 98 base::UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index))); 113 const ProfileInfoCache& cache local [all...] |
/external/chromium_org/chrome/browser/sync/glue/ |
H A D | favicon_cache_unittest.cc | 125 // TODO(zea): enable this once the cache supports writing them. 282 FaviconCache* cache() { return &cache_; } function in class:browser_sync::SyncFaviconCacheTest 313 cache()->MergeDataAndStartSyncing(syncer::FAVICON_IMAGES, 318 cache()->MergeDataAndStartSyncing(syncer::FAVICON_TRACKING, 362 cache()->GetAllSyncData(syncer::FAVICON_IMAGES); 364 cache()->GetAllSyncData(syncer::FAVICON_TRACKING); 445 cache()->OnFaviconDataAvailable(test_data.page_url, bitmap_results); 453 cache()->OnReceivedSyncFavicon(page_url, 460 // A freshly constructed cache should be empty. 503 // The cache shoul [all...] |
/external/chromium_org/chrome/browser/task_manager/ |
H A D | task_manager_util.cc | 50 ProfileInfoCache& cache = local 52 size_t index = cache.GetIndexOfProfileWithPath( 57 return cache.GetNameOfProfileAtIndex(index);
|
/external/chromium_org/chrome/browser/ui/sync/ |
H A D | one_click_signin_helper.cc | 841 ProfileInfoCache& cache = manager->GetProfileInfoCache(); local 842 for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) { 844 base::UTF16ToUTF8(cache.GetUserNameOfProfileAtIndex(i));
|
H A D | one_click_signin_helper_unittest.cc | 781 ProfileInfoCache* cache = testing_profile_manager_.profile_info_cache(); local 782 const base::FilePath& user_data_dir = cache->GetUserDataDir(); 783 cache->AddProfileToCache(user_data_dir.Append(FILE_PATH_LITERAL("user")),
|
/external/chromium_org/chrome/browser/ui/views/frame/ |
H A D | browser_non_client_frame_view.cc | 107 ProfileInfoCache& cache = local 110 size_t index = cache.GetIndexOfProfileWithPath(profile->GetPath()); 113 text = cache.GetNameOfProfileAtIndex(index);
|
H A D | browser_window_property_manager_browsertest_win.cc | 199 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 221 size_t profile2_index = cache.GetIndexOfProfileWithPath(path_profile2); 225 cache.GetNameOfProfileAtIndex(profile2_index)));
|
/external/chromium_org/chrome/browser/ui/views/profiles/ |
H A D | new_avatar_button.cc | 170 const ProfileInfoCache& cache = local 177 cache.GetNumberOfProfiles() == 1 && 178 cache.GetUserNameOfProfileAtIndex(0).empty());
|
H A D | new_avatar_menu_button_browsertest.cc | 62 ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); local 63 cache.SetUserNameOfProfileAtIndex(0, base::UTF8ToUTF16("user_name"));
|
/external/chromium_org/chrome/browser/ui/webui/net_internals/ |
H A D | net_internals_ui.cc | 165 // Returns the disk cache backend for |context| if there is one, or NULL. 983 net::HostCache* cache = GetHostResolverCache(context); local 985 if (!cache) { 1004 static_cast<int>(cache->max_entries())); 1008 net::HostCache::EntryMap::Iterator it(cache->entries()); 1036 dict->Set("cache", cache_info_dict); 1044 net::HostCache* cache = GetHostResolverCache(GetMainContext()); local 1046 if (cache) 1047 cache->clear();
|
H A D | net_internals_ui_browsertest.cc | 48 // Called on IO thread. Adds an entry to the cache for the specified hostname. 57 net::HostCache* cache = context->host_resolver()->GetHostCache(); local 58 ASSERT_TRUE(cache); 66 // net::AddressList, so it can be used with the cache. 73 // Add entry to the cache. 74 cache->Set(net::HostCache::Key(hostname, net::ADDRESS_FAMILY_UNSPECIFIED, 0), 101 // Called on UI thread. Adds an entry to the cache for the specified
|
/external/chromium_org/chrome/browser/ui/webui/ntp/ |
H A D | ntp_login_handler.cc | 204 ProfileInfoCache& cache = local 206 size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); 211 if (cache.GetNumberOfProfiles() == 1) { 212 base::string16 name = cache.GetGAIANameOfProfileAtIndex(profile_index); 216 cache.GetGAIAPictureOfProfileAtIndex(profile_index);
|
/external/chromium_org/chrome/browser/ui/webui/options/ |
H A D | browser_options_handler.cc | 1253 ProfileInfoCache& cache = local 1259 for (size_t i = 0, e = cache.GetNumberOfProfiles(); i < e; ++i) { 1261 profile_value->SetString("name", cache.GetNameOfProfileAtIndex(i)); 1262 base::FilePath profile_path = cache.GetPathOfProfileAtIndex(i); 1267 cache.ProfileIsSupervisedAtIndex(i)); 1270 cache.IsUsingGAIAPictureOfProfileAtIndex(i) && 1271 cache.GetGAIAPictureOfProfileAtIndex(i); 1274 cache.GetAvatarIconOfProfileAtIndex(i), true); 1278 size_t icon_index = cache.GetAvatarIconIndexOfProfileAtIndex(i);
|
H A D | create_profile_handler.cc | 427 const ProfileInfoCache& cache = local 429 for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) { 431 cache.GetSupervisedUserIdOfProfileAtIndex(i))
|