Home
last modified time | relevance | path

Searched refs:profile_index (Results 1 – 25 of 25) sorted by relevance

/external/chromium_org/chrome/browser/profiles/
Dgaia_info_update_service.cc117 size_t profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); in OnProfileDownloadSuccess() local
118 if (profile_index == std::string::npos) in OnProfileDownloadSuccess()
121 cache.SetGAIANameOfProfileAtIndex(profile_index, full_name); in OnProfileDownloadSuccess()
122 cache.SetGAIAGivenNameOfProfileAtIndex(profile_index, given_name); in OnProfileDownloadSuccess()
125 profile_index = cache.GetIndexOfProfileWithPath(profile_->GetPath()); in OnProfileDownloadSuccess()
126 if (profile_index == std::string::npos) in OnProfileDownloadSuccess()
132 cache.SetGAIAPictureOfProfileAtIndex(profile_index, &gfx_image); in OnProfileDownloadSuccess()
134 cache.SetGAIAPictureOfProfileAtIndex(profile_index, NULL); in OnProfileDownloadSuccess()
140 if (!cache.GetHasMigratedToGAIAInfoOfProfileAtIndex(profile_index)) { in OnProfileDownloadSuccess()
141 cache.SetHasMigratedToGAIAInfoOfProfileAtIndex(profile_index, true); in OnProfileDownloadSuccess()
[all …]
Dprofiles_state.cc86 size_t profile_index = cache.GetIndexOfProfileWithPath(profile_file_path); in UpdateProfileName() local
89 cache.GetGAIAGivenNameOfProfileAtIndex(profile_index)) || in UpdateProfileName()
90 (new_profile_name == cache.GetGAIANameOfProfileAtIndex(profile_index))) { in UpdateProfileName()
94 cache.SetIsUsingGAIANameOfProfileAtIndex(profile_index, true); in UpdateProfileName()
102 profile_index = cache.GetIndexOfProfileWithPath(profile_file_path); in UpdateProfileName()
103 if (profile_index == std::string::npos) in UpdateProfileName()
106 cache.SetIsUsingGAIANameOfProfileAtIndex(profile_index, false); in UpdateProfileName()
Davatar_menu.cc71 size_t profile_index, in Item() argument
78 profile_index(profile_index) { in Item()
131 profile_info_->GetPathOfProfileAtIndex(item.profile_index); in SwitchToProfile()
148 size_t profile_index = profile_list_->GetItemAt(index).profile_index; in EditProfile() local
151 profile_info_->GetPathOfProfileAtIndex(profile_index)); in EditProfile()
153 menu_actions_->EditProfile(profile, profile_index); in EditProfile()
Davatar_menu.h38 Item(size_t menu_index, size_t profile_index, const gfx::Image& icon);
69 size_t profile_index; member
Dprofile_shortcut_manager_win.cc723 size_t profile_index = cache.GetIndexOfProfileWithPath(profile_path); in GetShortcutProperties() local
724 DCHECK_LT(profile_index, cache.GetNumberOfProfiles()); in GetShortcutProperties()
729 shortcut_profile_name = cache.GetNameOfProfileAtIndex(profile_index); in GetShortcutProperties()
805 size_t profile_index = cache->GetIndexOfProfileWithPath(profile_path); in CreateOrUpdateShortcutsForProfileAtPath() local
806 if (profile_index == std::string::npos) in CreateOrUpdateShortcutsForProfileAtPath()
811 cache->GetShortcutNameOfProfileAtIndex(profile_index); in CreateOrUpdateShortcutsForProfileAtPath()
823 params.profile_name = cache->GetNameOfProfileAtIndex(profile_index); in CreateOrUpdateShortcutsForProfileAtPath()
826 cache->GetAvatarIconIndexOfProfileAtIndex(profile_index); in CreateOrUpdateShortcutsForProfileAtPath()
839 cache->SetShortcutNameOfProfileAtIndex(profile_index, in CreateOrUpdateShortcutsForProfileAtPath()
Dprofile_shortcut_manager_unittest_win.cc238 const size_t profile_index = in RenameProfile() local
240 ASSERT_NE(std::string::npos, profile_index); in RenameProfile()
241 ASSERT_NE(profile_info_cache_->GetNameOfProfileAtIndex(profile_index), in RenameProfile()
243 profile_info_cache_->SetNameOfProfileAtIndex(profile_index, in RenameProfile()
Dprofile_manager_unittest.cc399 size_t profile_index = cache.GetIndexOfProfileWithPath(dest_path); in TEST_F() local
403 UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index))); in TEST_F()
405 cache.GetAvatarIconIndexOfProfileAtIndex(profile_index)); in TEST_F()
Dprofile_info_cache.cc246 size_t profile_index = GetIndexOfProfileWithPath(profile_path); in DeleteProfileFromCache() local
247 if (profile_index == std::string::npos) { in DeleteProfileFromCache()
251 base::string16 name = GetNameOfProfileAtIndex(profile_index); in DeleteProfileFromCache()
/external/chromium_org/chrome/browser/sync/test/integration/
Dsearch_engines_helper.h22 TemplateURLService* GetServiceForBrowserContext(int profile_index);
29 bool ServiceMatchesVerifier(int profile_index);
48 void AddSearchEngine(int profile_index, int seed);
53 void EditSearchEngine(int profile_index,
61 void DeleteSearchEngineBySeed(int profile_index, int seed);
66 void ChangeDefaultSearchProvider(int profile_index, int seed);
Dsearch_engines_helper.cc118 TemplateURLService* GetServiceForBrowserContext(int profile_index) { in GetServiceForBrowserContext() argument
120 test()->GetProfile(profile_index)); in GetServiceForBrowserContext()
127 bool ServiceMatchesVerifier(int profile_index) { in ServiceMatchesVerifier() argument
129 TemplateURLService* other = GetServiceForBrowserContext(profile_index); in ServiceMatchesVerifier()
209 void AddSearchEngine(int profile_index, int seed) { in AddSearchEngine() argument
210 Profile* profile = test()->GetProfile(profile_index); in AddSearchEngine()
217 void EditSearchEngine(int profile_index, in EditSearchEngine() argument
223 TemplateURLService* service = GetServiceForBrowserContext(profile_index); in EditSearchEngine()
238 void DeleteSearchEngineBySeed(int profile_index, int seed) { in DeleteSearchEngineBySeed() argument
239 TemplateURLService* service = GetServiceForBrowserContext(profile_index); in DeleteSearchEngineBySeed()
[all …]
/external/chromium_org/chrome/browser/managed_mode/
Dmanaged_user_service_browsertest.cc48 size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); in IN_PROC_BROWSER_TEST_F() local
50 UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index))); in IN_PROC_BROWSER_TEST_F()
76 size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); in IN_PROC_BROWSER_TEST_F() local
77 EXPECT_EQ(name, UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index))); in IN_PROC_BROWSER_TEST_F()
85 profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); in IN_PROC_BROWSER_TEST_F()
87 UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index))); in IN_PROC_BROWSER_TEST_F()
93 profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); in IN_PROC_BROWSER_TEST_F()
95 UTF16ToUTF8(cache.GetNameOfProfileAtIndex(profile_index))); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/ui/webui/options/
Dmanage_profile_handler.cc231 size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); in SendProfileIcons() local
232 if (profile_index != std::string::npos) { in SendProfileIcons()
234 cache.GetGAIAPictureOfProfileAtIndex(profile_index); in SendProfileIcons()
274 size_t profile_index = cache.GetIndexOfProfileWithPath(profile_file_path); in SetProfileIconAndName() local
275 if (profile_index == std::string::npos) in SetProfileIconAndName()
289 cache.IsUsingGAIAPictureOfProfileAtIndex(profile_index); in SetProfileIconAndName()
293 cache.SetIsUsingGAIAPictureOfProfileAtIndex(profile_index, true); in SetProfileIconAndName()
306 cache.SetIsUsingGAIAPictureOfProfileAtIndex(profile_index, false); in SetProfileIconAndName()
365 size_t profile_index = cache.GetIndexOfProfileWithPath(profile_file_path); in ProfileIconSelectionChanged() local
366 if (profile_index == std::string::npos) in ProfileIconSelectionChanged()
[all …]
/external/chromium_org/chrome/browser/ui/webui/signin/
Duser_manager_screen_handler.cc207 size_t profile_index = GetIndexOfProfileWithEmailAndName( in HandleAuthenticatedLaunchUser() local
209 if (profile_index >= info_cache.GetNumberOfProfiles()) { in HandleAuthenticatedLaunchUser()
213 if (!chrome::ValidateLocalAuthCredentials(profile_index, password)) { in HandleAuthenticatedLaunchUser()
224 info_cache.SetProfileSigninRequiredAtIndex(profile_index, false); in HandleAuthenticatedLaunchUser()
225 base::FilePath path = info_cache.GetPathOfProfileAtIndex(profile_index); in HandleAuthenticatedLaunchUser()
270 size_t profile_index = GetIndexOfProfileWithEmailAndName( in HandleLaunchUser() local
273 if (profile_index >= info_cache.GetNumberOfProfiles()) { in HandleLaunchUser()
283 if (info_cache.ProfileIsSigninRequiredAtIndex(profile_index)) in HandleLaunchUser()
286 base::FilePath path = info_cache.GetPathOfProfileAtIndex(profile_index); in HandleLaunchUser()
/external/chromium_org/chrome/browser/ui/gtk/
Davatar_menu_bubble_gtk.h44 virtual void OpenProfile(size_t profile_index) OVERRIDE;
45 virtual void EditProfile(size_t profile_index) OVERRIDE;
Davatar_menu_bubble_gtk.cc89 void AvatarMenuBubbleGtk::OpenProfile(size_t profile_index) { in OpenProfile() argument
95 avatar_menu_->SwitchToProfile(profile_index, in OpenProfile()
100 void AvatarMenuBubbleGtk::EditProfile(size_t profile_index) { in EditProfile() argument
103 avatar_menu_->EditProfile(profile_index); in EditProfile()
Davatar_menu_item_gtk.h28 virtual void OpenProfile(size_t profile_index) = 0;
31 virtual void EditProfile(size_t profile_index) = 0;
/external/chromium_org/chrome/browser/ui/webui/ntp/
Dntp_login_handler.cc209 size_t profile_index = cache.GetIndexOfProfileWithPath(profile->GetPath()); in UpdateLogin() local
210 if (profile_index != std::string::npos) { in UpdateLogin()
215 base::string16 name = cache.GetGAIANameOfProfileAtIndex(profile_index); in UpdateLogin()
219 cache.GetGAIAPictureOfProfileAtIndex(profile_index); in UpdateLogin()
/external/chromium_org/chrome/browser/ui/app_list/
Dapp_list_service_impl.cc132 size_t profile_index = profile_info.GetIndexOfProfileWithPath(profile_path); in IsProfileManaged() local
133 return profile_info.ProfileIsManagedAtIndex(profile_index); in IsProfileManaged()
/external/chromium_org/chrome/browser/chromeos/profiles/
Dprofile_list_chromeos.cc85 if (items_[i]->profile_index == index) { in MenuIndexFromProfileIndex()
/external/chromium_org/third_party/mesa/src/chromium_gensrc/mesa/
Dbuiltin_function.cpp14445 int profile_index, in _mesa_read_profile() argument
14450 gl_shader *sh = builtin_profiles[profile_index]; in _mesa_read_profile()
14455 builtin_profiles[profile_index] = sh; in _mesa_read_profile()
/external/chromium_org/chrome/browser/background/
Dbackground_mode_manager.cc400 size_t profile_index = profile_cache_->GetIndexOfProfileWithPath( in OnApplicationListChanged() local
402 if (profile_index != std::string::npos) { in OnApplicationListChanged()
404 profile_index, GetBackgroundAppCountForProfile(profile) != 0); in OnApplicationListChanged()
/external/chromium/chrome/browser/autofill/
Dautofill_profile.cc368 size_t profile_index = it->second.front(); in CreateInferredLabels() local
369 (*created_labels)[profile_index] = label; in CreateInferredLabels()
/external/chromium_org/components/autofill/core/browser/
Dautofill_profile.cc603 size_t profile_index = it->second.front(); in CreateInferredLabels() local
604 (*labels)[profile_index] = label; in CreateInferredLabels()
/external/chromium_org/chrome/browser/
Dchrome_browser_main.cc364 size_t profile_index = cache.GetIndexOfProfileWithPath(profile_path); in CreateProfile() local
366 if (cache.ProfileIsSigninRequiredAtIndex(profile_index)) in CreateProfile()
/external/chromium_org/chrome/browser/ui/cocoa/browser/
Dprofile_chooser_controller.mm320 std::string::npos, /* profile_index, not used */