Home
last modified time | relevance | path

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

1234567891011

/external/chromium_org/chrome/browser/sync/test/integration/
Dtwo_client_themes_sync_test.cc38 ASSERT_FALSE(UsingCustomTheme(GetProfile(0))); in IN_PROC_BROWSER_TEST_F()
39 ASSERT_FALSE(UsingCustomTheme(GetProfile(1))); in IN_PROC_BROWSER_TEST_F()
42 UseCustomTheme(GetProfile(0), 0); in IN_PROC_BROWSER_TEST_F()
44 ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0))); in IN_PROC_BROWSER_TEST_F()
49 ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0))); in IN_PROC_BROWSER_TEST_F()
50 ASSERT_FALSE(UsingCustomTheme(GetProfile(1))); in IN_PROC_BROWSER_TEST_F()
54 ASSERT_TRUE(ThemeIsPendingInstall(GetProfile(1), GetCustomTheme(0))); in IN_PROC_BROWSER_TEST_F()
68 UseCustomTheme(GetProfile(0), 0);
69 UseCustomTheme(GetProfile(1), 0);
74 UseNativeTheme(GetProfile(0));
[all …]
Dtwo_client_apps_sync_test.cc53 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
54 InstallApp(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F()
75 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
76 InstallApp(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F()
82 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
84 CopyNTPOrdinals(GetProfile(0), verifier(), i); in IN_PROC_BROWSER_TEST_F()
89 InstallApp(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F()
91 CopyNTPOrdinals(GetProfile(1), verifier(), i); in IN_PROC_BROWSER_TEST_F()
96 InstallPlatformApp(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F()
98 CopyNTPOrdinals(GetProfile(1), verifier(), i); in IN_PROC_BROWSER_TEST_F()
[all …]
Dtwo_client_extensions_sync_test.cc41 InstallExtension(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
42 InstallExtension(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F()
61 InstallExtension(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
62 InstallExtension(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F()
68 InstallExtension(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
74 InstallExtension(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F()
82 InstallExtensionsPendingForSync(GetProfile(0)); in IN_PROC_BROWSER_TEST_F()
83 InstallExtensionsPendingForSync(GetProfile(1)); in IN_PROC_BROWSER_TEST_F()
96 InstallExtension(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
97 InstallExtension(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F()
[all …]
Dsingle_client_themes_sync_test.cc35 ASSERT_FALSE(UsingCustomTheme(GetProfile(0))); in IN_PROC_BROWSER_TEST_F()
38 UseCustomTheme(GetProfile(0), 0); in IN_PROC_BROWSER_TEST_F()
40 ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0))); in IN_PROC_BROWSER_TEST_F()
45 ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0))); in IN_PROC_BROWSER_TEST_F()
57 UseCustomTheme(GetProfile(0), 0);
59 ASSERT_FALSE(UsingNativeTheme(GetProfile(0)));
64 UseNativeTheme(GetProfile(0));
66 ASSERT_TRUE(UsingNativeTheme(GetProfile(0)));
71 ASSERT_TRUE(UsingNativeTheme(GetProfile(0)));
78 UseCustomTheme(GetProfile(0), 0);
[all …]
Dsingle_client_apps_sync_test.cc35 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
49 InstallPlatformApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
63 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
77 InstallPlatformApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
93 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
99 InstallPlatformApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/sync/test/integration/performance/
Dextensions_sync_perf_test.cc50 InstallExtension(GetProfile(profile), extension_number_++); in AddExtensions()
55 std::vector<int> extensions = GetInstalledExtensions(GetProfile(profile)); in UpdateExtensions()
58 if (IsExtensionEnabled(GetProfile(profile), *it)) { in UpdateExtensions()
59 DisableExtension(GetProfile(profile), *it); in UpdateExtensions()
61 EnableExtension(GetProfile(profile), *it); in UpdateExtensions()
67 return GetInstalledExtensions(GetProfile(profile)).size(); in GetExtensionCount()
71 std::vector<int> extensions = GetInstalledExtensions(GetProfile(profile)); in RemoveExtensions()
74 UninstallExtension(GetProfile(profile), *it); in RemoveExtensions()
87 InstallExtensionsPendingForSync(GetProfile(1)); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/extensions/api/media_galleries_private/
Dmedia_galleries_private_api.cc167 DCHECK(GetProfile()); in RunImpl()
178 GetProfile()); in RunImpl()
192 GetProfile(), in OnPreferencesInit()
203 MediaGalleriesPrivateAPI::Get(GetProfile())->GetEventRouter(); in OnPreferencesInit()
209 GetProfile(), in OnPreferencesInit()
234 ->GetPreferences(GetProfile()) in HandleResponse()
237 GetProfile())->GetGalleryWatchStateTracker(); in HandleResponse()
265 GetProfile()); in RunImpl()
279 GetProfile(), in OnPreferencesInit()
292 GetProfile(), in OnPreferencesInit()
[all …]
/external/chromium_org/chrome/browser/tab_contents/
Dspelling_menu_observer.cc43 if (proxy && proxy->GetProfile()) { in SpellingMenuObserver()
45 proxy->GetProfile()->GetPrefs()); in SpellingMenuObserver()
47 proxy->GetProfile()->GetPrefs()); in SpellingMenuObserver()
61 Profile* profile = proxy_->GetProfile(); in InitMenu()
212 !proxy_->GetProfile()->IsOffTheRecord(); in IsCommandIdChecked()
215 !proxy_->GetProfile()->IsOffTheRecord(); in IsCommandIdChecked()
238 !proxy_->GetProfile()->IsOffTheRecord(); in IsCommandIdEnabled()
242 !proxy_->GetProfile()->IsOffTheRecord(); in IsCommandIdEnabled()
260 Profile* profile = proxy_->GetProfile(); in ExecuteCommand()
286 Profile* profile = proxy_->GetProfile(); in ExecuteCommand()
[all …]
/external/chromium_org/chrome/browser/extensions/api/webstore_private/
Dwebstore_private_api.cc301 extensions::ExtensionSystem::Get(GetProfile())->extension_service(); in RunImpl()
303 !g_pending_installs.Get().InsertInstall(GetProfile(), in RunImpl()
312 context_getter = GetProfile()->GetRequestContext(); in RunImpl()
393 SigninManagerFactory::GetForProfile(GetProfile()); in OnWebstoreParseSuccess()
398 signin_tracker_.reset(new SigninTracker(GetProfile(), this)); in OnWebstoreParseSuccess()
426 g_pending_installs.Get().EraseInstall(GetProfile(), id); in OnWebstoreParseFailure()
439 g_pending_installs.Get().EraseInstall(GetProfile(), params_->details.id); in SigninFailed()
472 GetProfile(), params_->details.id, parsed_manifest_.Pass(), false)); in InstallUIProceed()
499 g_pending_installs.Get().EraseInstall(GetProfile(), params_->details.id); in InstallUIAbort()
537 .PopApproval(GetProfile(), params->expected_id) in RunImpl()
[all …]
/external/chromium_org/chrome/browser/extensions/api/content_settings/
Dcontent_settings_api.cc85 if (GetProfile()->IsOffTheRecord()) { in RunImpl()
91 ContentSettingsStore* store = extensions::ExtensionSystem::Get(GetProfile()) in RunImpl()
138 if (!GetProfile()->HasOffTheRecordProfile()) { in RunImpl()
144 map = GetProfile()->GetOffTheRecordProfile()->GetHostContentSettingsMap(); in RunImpl()
146 GetProfile()->GetOffTheRecordProfile()).get(); in RunImpl()
148 map = GetProfile()->GetHostContentSettingsMap(); in RunImpl()
150 CookieSettings::Factory::GetForProfile(GetProfile()).get(); in RunImpl()
212 GetProfile()->GetPrefs(), setting, content_type)); in RunImpl()
224 if (!GetProfile()->IsOffTheRecord() && !include_incognito()) { in RunImpl()
231 if (GetProfile()->IsOffTheRecord()) { in RunImpl()
[all …]
/external/chromium_org/chrome/browser/extensions/api/bluetooth/
Dbluetooth_api.cc137 if (GetEventRouter(GetProfile())->HasProfile(uuid_)) { in RunImpl()
185 if (GetEventRouter(GetProfile())->HasProfile(uuid_)) { in OnProfileRegistered()
194 base::Unretained(GetEventRouter(GetProfile())), in OnProfileRegistered()
197 GetEventRouter(GetProfile())->AddProfile(uuid_, bluetooth_profile); in OnProfileRegistered()
213 if (!GetEventRouter(GetProfile())->HasProfile(uuid)) { in RunImpl()
218 GetEventRouter(GetProfile())->RemoveProfile(uuid); in RunImpl()
269 GetEventRouter(GetProfile())->DispatchDeviceEvent( in DispatchDeviceSearchResult()
284 extensions::ExtensionSystem::Get(GetProfile()) in FinishDeviceSearch()
402 GetEventRouter(GetProfile())->GetProfile(uuid); in DoWork()
421 return GetEventRouter(GetProfile())->ReleaseSocket(options.socket.id); in RunImpl()
[all …]
/external/chromium_org/chrome/browser/ui/webui/
Dapp_launcher_page_ui.cc41 if (NTPLoginHandler::ShouldShow(GetProfile())) in AppLauncherPageUI()
44 if (!GetProfile()->IsOffTheRecord()) { in AppLauncherPageUI()
45 ExtensionService* service = GetProfile()->GetExtensionService(); in AppLauncherPageUI()
62 new HTMLSource(GetProfile()->GetOriginalProfile())); in AppLauncherPageUI()
63 content::URLDataSource::Add(GetProfile(), html_source.release()); in AppLauncherPageUI()
77 Profile* AppLauncherPageUI::GetProfile() const { in GetProfile() function in AppLauncherPageUI
Dtheme_handler.cc34 ThemeServiceFactory::GetForProfile(GetProfile()))); in RegisterMessages()
43 ThemeServiceFactory::GetForProfile(GetProfile())->HasCustomImage( in Observe()
49 Profile* profile = GetProfile(); in InitializeCSSCaches()
54 Profile* ThemeHandler::GetProfile() const { in GetProfile() function in ThemeHandler
Dsync_setup_handler.cc296 GetProfile())->GetAuthenticatedUsername().empty()); in DisplayConfigureSync()
306 if (SyncStartupTracker::GetSyncServiceState(GetProfile()) != in DisplayConfigureSync()
313 new SyncStartupTracker(GetProfile(), this)); in DisplayConfigureSync()
351 browser_sync::SyncPrefs sync_prefs(GetProfile()->GetPrefs()); in DisplayConfigureSync()
425 signin::SetUserSkippedPromo(GetProfile()); in ConfigureSyncDone()
431 base::FilePath profile_file_path = GetProfile()->GetPath(); in ConfigureSyncDone()
497 Browser::TYPE_TABBED, GetProfile(), chrome::GetActiveDesktop())); in DisplayGaiaLoginInNewTabOrWindow()
591 Profile* SyncSetupHandler::GetProfile() const { in GetProfile() function in SyncSetupHandler
596 Profile* profile = GetProfile(); in GetSyncService()
598 ProfileSyncServiceFactory::GetForProfile(GetProfile()) : NULL; in GetSyncService()
[all …]
/external/chromium/chrome/browser/history/
Dhistory_browsertest.cc91 return GetProfile()->GetPrefs(); in GetPrefs()
94 Profile* GetProfile() { in GetProfile() function in __anond4cf6e780111::HistoryBrowserTest
95 return browser()->GetProfile(); in GetProfile()
99 return GetProfile()->GetHistoryService(Profile::EXPLICIT_ACCESS); in GetHistoryService()
136 EXPECT_TRUE(GetProfile()->GetHistoryService(Profile::EXPLICIT_ACCESS)); in IN_PROC_BROWSER_TEST_F()
137 EXPECT_TRUE(GetProfile()->GetHistoryService(Profile::IMPLICIT_ACCESS)); in IN_PROC_BROWSER_TEST_F()
159 EXPECT_TRUE(GetProfile()->GetHistoryService(Profile::EXPLICIT_ACCESS)); in IN_PROC_BROWSER_TEST_F()
160 EXPECT_FALSE(GetProfile()->GetHistoryService(Profile::IMPLICIT_ACCESS)); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/extensions/api/identity/
Didentity_api.cc77 if (GetProfile()->IsOffTheRecord()) { in RunImpl()
107 ProfileOAuth2TokenServiceFactory::GetForProfile(GetProfile()); in RunImpl()
158 GetProfile()); in StartSigninFlow()
174 GetProfile()); in StartMintTokenFlow()
202 ->GetForProfile(GetProfile()) in CompleteMintTokenFlow()
211 IdentityAPI::GetFactoryInstance()->GetForProfile(GetProfile()); in StartMintToken()
272 ->GetForProfile(GetProfile()) in OnMintTokenSuccess()
289 ->GetForProfile(GetProfile()) in OnMintTokenFailure()
309 ->GetForProfile(GetProfile()) in OnIssueAdviceSuccess()
376 ->GetForProfile(GetProfile()) in OnGaiaFlowCompleted()
[all …]
/external/chromium_org/chrome/browser/extensions/api/font_settings/
Dfont_settings_api.cc223 if (GetProfile()->IsOffTheRecord()) { in RunImpl()
237 GetProfile()->GetPrefs()->FindPreference(pref_path.c_str())); in RunImpl()
239 PreferenceAPI::Get(GetProfile())->RemoveExtensionControlledPref( in RunImpl()
252 PrefService* prefs = GetProfile()->GetPrefs(); in RunImpl()
266 GetProfile(), extension_id(), pref_path, kIncognito); in RunImpl()
276 if (GetProfile()->IsOffTheRecord()) { in RunImpl()
290 GetProfile()->GetPrefs()->FindPreference(pref_path.c_str())); in RunImpl()
292 PreferenceAPI::Get(GetProfile())->SetExtensionControlledPref( in RunImpl()
346 if (GetProfile()->IsOffTheRecord()) { in RunImpl()
351 PreferenceAPI::Get(GetProfile())->RemoveExtensionControlledPref( in RunImpl()
[all …]
/external/chromium_org/chrome/browser/extensions/api/sync_file_system/
Dsync_file_system_api.cc74 BrowserContext::GetStoragePartition(GetProfile(), in RunImpl()
122 GetSyncFileSystemService(GetProfile()); in RunImpl()
141 GetProfile(), render_view_host()->GetSiteInstance()) in GetFileSystemContext()
179 BrowserContext::GetStoragePartition(GetProfile(), in RunImpl()
185 GetSyncFileSystemService(GetProfile())->GetFileSyncStatus( in RunImpl()
219 BrowserContext::GetStoragePartition(GetProfile(), in RunImpl()
229 GetSyncFileSystemService(GetProfile()); in RunImpl()
295 BrowserContext::GetStoragePartition(GetProfile(), in RunImpl()
302 BrowserContext::GetStoragePartition(GetProfile(), in RunImpl()
357 GetSyncFileSystemService(GetProfile()); in RunImpl()
[all …]
/external/chromium/chrome/browser/ui/webui/
Dmost_visited_handler.cc67 Profile* profile = web_ui->GetProfile(); in Attach()
119 Profile* profile = web_ui_->GetProfile(); in SendPagesValue()
138 history::TopSites* ts = web_ui_->GetProfile()->GetTopSites(); in StartQueryForMostVisited()
163 web_ui_->GetProfile()); in HandleRemoveURLsFromBlacklist()
164 history::TopSites* ts = web_ui_->GetProfile()->GetTopSites(); in HandleRemoveURLsFromBlacklist()
172 web_ui_->GetProfile()); in HandleClearBlacklist()
174 history::TopSites* ts = web_ui_->GetProfile()->GetTopSites(); in HandleClearBlacklist()
214 history::TopSites* ts = web_ui_->GetProfile()->GetTopSites(); in AddPinnedURL()
225 history::TopSites* ts = web_ui_->GetProfile()->GetTopSites(); in RemovePinnedURL()
236 PrefService* prefs = web_ui_->GetProfile()->GetPrefs(); in GetPinnedURLAtIndex()
[all …]
Dnew_tab_ui.cc134 tab_restore_service_ = web_ui_->GetProfile()->GetTabRestoreService(); in HandleGetRecentlyClosedTabs()
202 UserMetrics::RecordComputedAction(string_action, web_ui_->GetProfile()); in HandleMetrics()
238 web_ui_->GetProfile()->GetPrefs()->SetBoolean(prefs::kHomePageIsNewTabPage, in HandleSetHomePage()
276 web_ui_->GetProfile()->GetPrefs()->SetBoolean(prefs::kNTPPromoClosed, true); in HandleClosePromo()
313 if (!GetProfile()->IsOffTheRecord()) { in NewTabUI()
314 PrefService* pref_service = GetProfile()->GetPrefs(); in NewTabUI()
322 if (GetProfile()->IsSyncAccessible()) in NewTabUI()
324 ExtensionService* service = GetProfile()->GetExtensionService(); in NewTabUI()
339 new NewTabHTMLSource(GetProfile()->GetOriginalProfile()); in NewTabUI()
402 ThemeServiceFactory::GetForProfile(GetProfile())->HasCustomImage( in Observe()
[all …]
/external/chromium_org/chrome/browser/extensions/api/push_messaging/
Dpush_messaging_api.cc105 ProfileOAuth2TokenServiceFactory::GetForProfile(GetProfile()) in RunImpl()
107 LoginUIServiceFactory::GetForProfile(GetProfile())->ShowLoginPopup(); in RunImpl()
116 DVLOG(2) << "Logged in profile name: " << GetProfile()->GetProfileName(); in RunImpl()
127 ProfileOAuth2TokenServiceFactory::GetForProfile(GetProfile()); in StartAccessTokenFetch()
134 ProfileOAuth2TokenServiceFactory::GetForProfile(GetProfile()) in OnRefreshTokenAvailable()
136 DVLOG(2) << "Newly logged in: " << GetProfile()->GetProfileName(); in OnRefreshTokenAvailable()
169 net::URLRequestContextGetter* context = GetProfile()->GetRequestContext(); in StartGaiaIdFetch()
174 TokenCacheServiceFactory::GetForProfile(GetProfile()); in StartGaiaIdFetch()
191 ProfileOAuth2TokenServiceFactory::GetForProfile(GetProfile()); in IsUserLoggedIn()
208 TokenCacheServiceFactory::GetForProfile(GetProfile()); in ReportResult()
[all …]
/external/chromium_org/chrome/browser/chromeos/power/
Dpower_prefs_unittest.cc46 const Profile* GetProfile() const;
79 EXPECT_FALSE(GetProfile()); in SetUp()
90 const Profile* PowerPrefsTest::GetProfile() const { in GetProfile() function in chromeos::PowerPrefsTest
179 EXPECT_EQ(login_profile, GetProfile()); in TEST_F()
194 EXPECT_EQ(login_profile, GetProfile()); in TEST_F()
205 EXPECT_FALSE(GetProfile()); in TEST_F()
224 EXPECT_EQ(user_profile, GetProfile()); in TEST_F()
239 EXPECT_EQ(user_profile, GetProfile()); in TEST_F()
251 EXPECT_EQ(user_profile, GetProfile()); in TEST_F()
263 EXPECT_FALSE(GetProfile()); in TEST_F()
/external/chromium_org/chrome/browser/extensions/api/networking_private/
Dnetworking_private_api_nonchromeos.cc39 NetworkingPrivateServiceClientFactory::GetForProfile(GetProfile()); in RunImpl()
76 NetworkingPrivateServiceClientFactory::GetForProfile(GetProfile()); in RunImpl()
116 NetworkingPrivateServiceClientFactory::GetForProfile(GetProfile()); in RunImpl()
156 NetworkingPrivateServiceClientFactory::GetForProfile(GetProfile()); in RunImpl()
192 NetworkingPrivateServiceClientFactory::GetForProfile(GetProfile()); in RunImpl()
228 NetworkingPrivateServiceClientFactory::GetForProfile(GetProfile()); in RunImpl()
295 NetworkingPrivateServiceClientFactory::GetForProfile(GetProfile()); in RunImpl()
312 NetworkingPrivateServiceClientFactory::GetForProfile(GetProfile()); in RunImpl()
345 NetworkingPrivateServiceClientFactory::GetForProfile(GetProfile()); in RunImpl()
379 NetworkingPrivateServiceClientFactory::GetForProfile(GetProfile()); in RunImpl()
[all …]
/external/chromium_org/chrome/browser/extensions/api/permissions/
Dpermissions_api.cc59 ExtensionPrefs::Get(GetProfile())->AllowFileAccess(extension_->id()), in RunImpl()
82 ExtensionPrefs::Get(GetProfile())->AllowFileAccess(extension_->id()), in RunImpl()
110 PermissionsUpdater(GetProfile()) in RunImpl()
130 PermissionsUpdater perms_updater(GetProfile()); in InstallUIProceed()
162 ExtensionPrefs::Get(GetProfile())->AllowFileAccess(extension_->id()), in RunImpl()
188 GetProfile())->GetGrantedPermissions(GetExtension()->id()); in RunImpl()
190 PermissionsUpdater perms_updater(GetProfile()); in RunImpl()
/external/chromium_org/chrome/browser/chromeos/extensions/file_manager/
Dprivate_api_drive.cc96 render_view_host(), GetProfile(), file_url)); in RunImpl()
103 drive::util::GetFileSystemByProfile(GetProfile()); in RunImpl()
131 drive::util::GetFileSystemByProfile(GetProfile()); in OnGetFileInfo()
133 drive::util::GetDriveAppRegistryByProfile(GetProfile()); in OnGetFileInfo()
159 *GetProfile()->GetPrefs(), in OnGetFileInfo()
209 drive::util::GetFileSystemByProfile(GetProfile()); in RunImpl()
215 render_view_host(), GetProfile(), GURL(params->file_url))); in RunImpl()
256 render_view_host(), GetProfile(), GURL(params->file_urls[i])); in RunImpl()
279 drive::util::GetFileSystemByProfile(GetProfile()); in GetFileOrSendResponse()
326 drive::DriveIntegrationServiceFactory::FindForProfile(GetProfile()); in RunImpl()
[all …]

1234567891011