/external/chromium_org/chrome/browser/sync/test/integration/ |
D | two_client_themes_sync_test.cc | 42 ASSERT_FALSE(UsingCustomTheme(GetProfile(0))); in IN_PROC_BROWSER_TEST_F() 43 ASSERT_FALSE(UsingCustomTheme(GetProfile(1))); in IN_PROC_BROWSER_TEST_F() 46 UseCustomTheme(GetProfile(0), 0); in IN_PROC_BROWSER_TEST_F() 48 ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0))); in IN_PROC_BROWSER_TEST_F() 54 ASSERT_TRUE(AwaitThemeIsPendingInstall(GetProfile(1), GetCustomTheme(0))); in IN_PROC_BROWSER_TEST_F() 56 EXPECT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0))); in IN_PROC_BROWSER_TEST_F() 57 EXPECT_FALSE(UsingCustomTheme(GetProfile(1))); in IN_PROC_BROWSER_TEST_F() 66 UseCustomTheme(GetProfile(0), 0); in IN_PROC_BROWSER_TEST_F() 67 UseCustomTheme(GetProfile(1), 0); in IN_PROC_BROWSER_TEST_F() 72 UseSystemTheme(GetProfile(0)); in IN_PROC_BROWSER_TEST_F() [all …]
|
D | two_client_app_list_sync_test.cc | 85 WaitForExtensionsServiceToLoadForProfile(GetProfile(i)); in WaitForExtensionServicesToLoad() 114 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 115 InstallApp(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F() 136 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 137 InstallApp(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F() 143 std::string id = InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 145 SyncAppListHelper::GetInstance()->CopyOrdinalsToVerifier(GetProfile(0), id); in IN_PROC_BROWSER_TEST_F() 150 std::string id = InstallApp(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F() 152 SyncAppListHelper::GetInstance()->CopyOrdinalsToVerifier(GetProfile(1), id); in IN_PROC_BROWSER_TEST_F() 159 InstallAppsPendingForSync(GetProfile(0)); in IN_PROC_BROWSER_TEST_F() [all …]
|
D | two_client_apps_sync_test.cc | 79 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 80 InstallApp(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F() 99 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 100 InstallApp(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F() 106 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 108 CopyNTPOrdinals(GetProfile(0), verifier(), i); in IN_PROC_BROWSER_TEST_F() 113 InstallApp(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F() 115 CopyNTPOrdinals(GetProfile(1), verifier(), i); in IN_PROC_BROWSER_TEST_F() 120 InstallPlatformApp(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F() 122 CopyNTPOrdinals(GetProfile(1), verifier(), i); in IN_PROC_BROWSER_TEST_F() [all …]
|
D | two_client_extensions_sync_test.cc | 42 InstallExtension(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 43 InstallExtension(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F() 59 InstallExtension(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 60 InstallExtension(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F() 66 InstallExtension(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 72 InstallExtension(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F() 88 InstallExtension(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 89 InstallExtension(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F() 98 InstallExtension(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 104 InstallExtension(GetProfile(1), i); in IN_PROC_BROWSER_TEST_F() [all …]
|
D | single_client_themes_sync_test.cc | 37 ASSERT_FALSE(UsingCustomTheme(GetProfile(0))); in IN_PROC_BROWSER_TEST_F() 40 UseCustomTheme(GetProfile(0), 0); in IN_PROC_BROWSER_TEST_F() 42 ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0))); in IN_PROC_BROWSER_TEST_F() 47 ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0))); in IN_PROC_BROWSER_TEST_F() 59 UseCustomTheme(GetProfile(0), 0); 61 ASSERT_FALSE(UsingSystemTheme(GetProfile(0))); 66 UseSystemTheme(GetProfile(0)); 68 ASSERT_TRUE(UsingSystemTheme(GetProfile(0))); 73 ASSERT_TRUE(UsingSystemTheme(GetProfile(0))); 80 UseCustomTheme(GetProfile(0), 0); [all …]
|
D | single_client_apps_sync_test.cc | 37 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 51 InstallPlatformApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 65 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 79 InstallPlatformApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 95 InstallApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F() 101 InstallPlatformApp(GetProfile(0), i); in IN_PROC_BROWSER_TEST_F()
|
/external/chromium_org/chrome/browser/sync/test/integration/performance/ |
D | extensions_sync_perf_test.cc | 50 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/ |
D | media_galleries_private_api.cc | 160 DCHECK(GetProfile()); in RunAsync() 171 GetProfile()); in RunAsync() 185 GetProfile(), in OnPreferencesInit() 195 MediaGalleriesPrivateAPI::Get(GetProfile())->GetEventRouter(); in OnPreferencesInit() 205 GetProfile(), in OnPreferencesInit() 225 ->GetPreferences(GetProfile()) in HandleResponse() 228 GetProfile())->GetGalleryWatchStateTracker(); in HandleResponse() 254 GetProfile()); in RunAsync() 267 GetProfile(), in OnPreferencesInit() 280 GetProfile(), in OnPreferencesInit() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/identity/ |
D | identity_api.cc | 267 if (GetProfile()->IsOffTheRecord()) { in Run() 272 IdentityAPI::GetFactoryInstance()->Get(GetProfile())->GetAccounts(); in Run() 305 if (GetProfile()->IsOffTheRecord()) { in RunAsync() 332 std::string account_key = GetPrimaryAccountId(GetProfile()); in RunAsync() 338 ->Get(GetProfile()) in RunAsync() 397 ->Get(GetProfile()) in StartAsyncRun() 403 ->Get(GetProfile()) in CompleteAsyncRun() 432 extensions::IdentityAPI::GetFactoryInstance()->Get(GetProfile()); in StartSigninFlow() 447 extensions::IdentityAPI::GetFactoryInstance()->Get(GetProfile()); in StartMintTokenFlow() 471 ->Get(GetProfile()) in CompleteMintTokenFlow() [all …]
|
/external/chromium_org/chrome/browser/chromeos/extensions/file_manager/ |
D | private_api_misc.cc | 53 AppWindowRegistry::Get(function->GetProfile()); in GetCurrentAppWindow() 99 chromeos::ProfileHelper::Get()->GetUserByProfile(GetProfile()); in RunSync() 111 const PrefService* const service = GetProfile()->GetPrefs(); in RunSync() 113 result.drive_enabled = drive::util::IsDriveEnabledForProfile(GetProfile()); in RunSync() 128 drive::EventLogger* logger = file_manager::util::GetLogger(GetProfile()); in RunSync() 139 PrefService* const service = GetProfile()->GetPrefs(); in RunSync() 149 drive::EventLogger* logger = file_manager::util::GetLogger(GetProfile()); in RunSync() 171 render_view_host(), GetProfile(), GURL(params->dir_url)); in RunAsync() 182 render_view_host(), GetProfile(), GURL(params->selection_urls[i])); in RunAsync() 269 GetProfile(), in RunAsync() [all …]
|
D | private_api_mount.cc | 53 drive::EventLogger* logger = file_manager::util::GetLogger(GetProfile()); in RunAsync() 64 render_view_host(), GetProfile(), GURL(params->source)); in RunAsync() 72 drive::util::GetFileSystemByProfile(GetProfile()); in RunAsync() 85 file_manager::VolumeManager::Get(GetProfile()); in RunAsync() 132 drive::util::GetFileSystemByProfile(GetProfile()); in RunAfterGetDriveFile() 175 drive::EventLogger* logger = file_manager::util::GetLogger(GetProfile()); in RunAsync() 187 VolumeManager* volume_manager = VolumeManager::Get(GetProfile()); in RunAsync() 208 chromeos::file_system_provider::Service::Get(GetProfile()); in RunAsync() 231 file_manager::VolumeManager::Get(GetProfile())->GetVolumeInfoList(); in RunAsync() 239 GetProfile(), volume_info_list[i], volume_metadata.get()); in RunAsync() [all …]
|
D | private_api_file_system.cc | 278 VolumeManager* volume_manager = VolumeManager::Get(GetProfile()); in RunAsync() 290 GetProfile(), render_view_host()); in RunAsync() 295 file_system_context, child_id, GetProfile(), extension())) { in RunAsync() 302 GetProfile(), in RunAsync() 312 GetProfile(), in RunAsync() 363 GetProfile(), render_view_host()); in RunAsync() 384 file_manager::EventRouterFactory::GetForProfile(GetProfile()); in PerformFileWatchOperation() 399 file_manager::EventRouterFactory::GetForProfile(GetProfile()); in PerformFileWatchOperation() 411 VolumeManager* volume_manager = VolumeManager::Get(GetProfile()); in RunAsync() 421 drive::util::GetFileSystemByProfile(GetProfile()); in RunAsync() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/media_galleries/ |
D | media_galleries_api.cc | 472 return Setup(GetProfile(), &error_, base::Bind( in RunAsync() 540 GetWebContents(render_view_host(), GetProfile(), extension()->id()); in ShowDialog() 559 DCHECK(registry->GetPreferences(GetProfile())->IsInitialized()); in GetMediaFileSystemsForExtension() 574 return Setup(GetProfile(), &error_, base::Bind( in RunAsync() 581 MediaGalleriesPreferences* prefs = registry->GetPreferences(GetProfile()); in OnPreferencesInit() 608 MediaGalleriesPreferences* prefs = registry->GetPreferences(GetProfile()); in OnGetGalleries() 638 return Setup(GetProfile(), &error_, base::Bind( in RunAsync() 643 Profile* profile = GetProfile(); in OnPreferencesInit() 686 extensions::ExtensionPrefs::Get(GetProfile()), in OnDirectorySelected() 691 media_file_system_registry()->GetPreferences(GetProfile()); in OnDirectorySelected() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/content_settings/ |
D | content_settings_api.cc | 84 if (GetProfile()->IsOffTheRecord()) { in RunSync() 91 ContentSettingsService::Get(GetProfile())->content_settings_store(); in RunSync() 136 if (!GetProfile()->HasOffTheRecordProfile()) { in RunSync() 142 map = GetProfile()->GetOffTheRecordProfile()->GetHostContentSettingsMap(); in RunSync() 144 GetProfile()->GetOffTheRecordProfile()).get(); in RunSync() 146 map = GetProfile()->GetHostContentSettingsMap(); in RunSync() 148 CookieSettings::Factory::GetForProfile(GetProfile()).get(); in RunSync() 210 GetProfile()->GetPrefs(), setting, content_type)); in RunSync() 222 if (!GetProfile()->IsOffTheRecord() && !include_incognito()) { in RunSync() 229 if (GetProfile()->IsOffTheRecord()) { in RunSync() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/context_menus/ |
D | context_menus_api.cc | 36 MenuItem::Id id(GetProfile()->IsOffTheRecord(), in RunSync() 57 params->create_properties, GetProfile(), extension(), id, &error_); in RunSync() 61 MenuItem::Id item_id(GetProfile()->IsOffTheRecord(), in RunSync() 74 params->update_properties, GetProfile(), extension(), item_id, &error_); in RunSync() 81 MenuManager* manager = MenuManager::Get(GetProfile()); in RunSync() 83 MenuItem::Id id(GetProfile()->IsOffTheRecord(), in RunSync() 107 MenuManager* manager = MenuManager::Get(GetProfile()); in RunSync()
|
/external/chromium_org/chrome/browser/ui/webui/ |
D | app_launcher_page_ui.cc | 42 if (NTPLoginHandler::ShouldShow(GetProfile())) in AppLauncherPageUI() 45 if (!GetProfile()->IsOffTheRecord()) { in AppLauncherPageUI() 47 extensions::ExtensionSystem::Get(GetProfile())->extension_service(); in AppLauncherPageUI() 64 new HTMLSource(GetProfile()->GetOriginalProfile())); in AppLauncherPageUI() 65 content::URLDataSource::Add(GetProfile(), html_source.release()); in AppLauncherPageUI() 79 Profile* AppLauncherPageUI::GetProfile() const { in GetProfile() function in AppLauncherPageUI
|
D | theme_handler.cc | 34 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
|
D | sync_setup_handler.cc | 315 GetProfile())->IsAuthenticated()); in DisplayConfigureSync() 325 if (SyncStartupTracker::GetSyncServiceState(GetProfile()) != in DisplayConfigureSync() 332 new SyncStartupTracker(GetProfile(), this)); in DisplayConfigureSync() 372 sync_driver::SyncPrefs sync_prefs(GetProfile()->GetPrefs()); in DisplayConfigureSync() 447 signin::SetUserSkippedPromo(GetProfile()); in ConfigureSyncDone() 453 base::FilePath profile_file_path = GetProfile()->GetPath(); in ConfigureSyncDone() 518 Browser::TYPE_TABBED, GetProfile(), chrome::GetActiveDesktop())); in DisplayGaiaLoginInNewTabOrWindow() 631 Profile* SyncSetupHandler::GetProfile() const { in GetProfile() function in SyncSetupHandler 636 Profile* profile = GetProfile(); in GetSyncService() 638 ProfileSyncServiceFactory::GetForProfile(GetProfile()) : NULL; in GetSyncService() [all …]
|
/external/chromium_org/chrome/browser/chromeos/power/ |
D | power_prefs_unittest.cc | 49 const Profile* GetProfile() const; 85 EXPECT_FALSE(GetProfile()); in SetUp() 96 const Profile* PowerPrefsTest::GetProfile() const { in GetProfile() function in chromeos::PowerPrefsTest 178 EXPECT_EQ(login_profile, GetProfile()); in TEST_F() 193 EXPECT_EQ(login_profile, GetProfile()); in TEST_F() 205 EXPECT_FALSE(GetProfile()); in TEST_F() 228 EXPECT_EQ(user_profile, GetProfile()); in TEST_F() 246 EXPECT_EQ(user_profile, GetProfile()); in TEST_F() 258 EXPECT_EQ(user_profile, GetProfile()); in TEST_F() 271 EXPECT_FALSE(GetProfile()); in TEST_F()
|
/external/chromium_org/chrome/browser/extensions/api/developer_private/ |
D | developer_private_api.cc | 333 ExtensionUpdater* updater = GetExtensionUpdater(GetProfile()); in RunSync() 347 ExtensionSystem* system = ExtensionSystem::Get(GetProfile()); in CreateItemInfo() 349 ExtensionRegistry* registry = ExtensionRegistry::Get(GetProfile()); in CreateItemInfo() 381 ErrorConsole* error_console = ErrorConsole::Get(GetProfile()); in CreateItemInfo() 424 info->incognito_enabled = util::IsIncognitoEnabled(item.id(), GetProfile()); in CreateItemInfo() 426 info->allow_file_access = util::AllowFileAccess(item.id(), GetProfile()); in CreateItemInfo() 510 AppWindowRegistry* registry = AppWindowRegistry::Get(GetProfile()); in GetAppWindowPagesForExtensionProfile() 566 ExtensionSystem::Get(GetProfile())->process_manager(); in GetInspectablePagesForExtension() 587 ExtensionService* service = GetExtensionService(GetProfile()); in GetInspectablePagesForExtension() 624 ExtensionRegistry* registry = ExtensionRegistry::Get(GetProfile()); in RunAsync() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/hotword_private/ |
D | hotword_private_api.cc | 91 PrefService* prefs = GetProfile()->GetPrefs(); in RunSync() 103 PrefService* prefs = GetProfile()->GetPrefs(); in RunSync() 114 PrefService* prefs = GetProfile()->GetPrefs(); in RunSync() 123 HotwordServiceFactory::GetForProfile(GetProfile()); in RunSync() 129 PrefService* prefs = GetProfile()->GetPrefs(); in RunSync() 151 HotwordServiceFactory::GetForProfile(GetProfile()); in RunSync() 159 HotwordServiceFactory::GetForProfile(GetProfile()); in RunSync() 169 HotwordServiceFactory::GetForProfile(GetProfile()); in RunSync()
|
/external/chromium_org/chrome/browser/extensions/api/webstore_private/ |
D | webstore_private_api.cc | 261 Profile* profile = GetProfile(); in RunAsync() 275 context_getter = GetProfile()->GetRequestContext(); in RunAsync() 398 GetProfile(), params_->details.id, parsed_manifest_.Pass(), false)); in InstallUIProceed() 465 .PopApproval(GetProfile(), params->expected_id) in RunAsync() 474 InstallTracker::Get(GetProfile()), params->expected_id)); in RunAsync() 480 app_list_service->EnableAppList(GetProfile(), in RunAsync() 488 app_list_service->CreateForProfile(GetProfile()); in RunAsync() 490 app_list_service->AutoShowForProfile(GetProfile()); in RunAsync() 496 const Extension* extension = ExtensionRegistry::Get(GetProfile())-> in RunAsync() 499 util::IsEphemeralApp(extension->id(), GetProfile()) && in RunAsync() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/font_settings/ |
D | font_settings_api.cc | 224 if (GetProfile()->IsOffTheRecord()) { in RunSync() 238 GetProfile()->GetPrefs()->FindPreference(pref_path.c_str())); in RunSync() 240 PreferenceAPI::Get(GetProfile())->RemoveExtensionControlledPref( in RunSync() 253 PrefService* prefs = GetProfile()->GetPrefs(); in RunSync() 267 GetProfile(), extension_id(), pref_path, kIncognito); in RunSync() 277 if (GetProfile()->IsOffTheRecord()) { in RunSync() 291 GetProfile()->GetPrefs()->FindPreference(pref_path.c_str())); in RunSync() 293 PreferenceAPI::Get(GetProfile())->SetExtensionControlledPref( in RunSync() 347 if (GetProfile()->IsOffTheRecord()) { in RunSync() 352 PreferenceAPI::Get(GetProfile())->RemoveExtensionControlledPref( in RunSync() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/permissions/ |
D | permissions_api.cc | 58 ExtensionPrefs::Get(GetProfile())->AllowFileAccess(extension_->id()), in RunSync() 82 ExtensionPrefs::Get(GetProfile())->AllowFileAccess(extension_->id()), in RunSync() 108 PermissionsUpdater(GetProfile()) in RunSync() 128 PermissionsUpdater perms_updater(GetProfile()); in InstallUIProceed() 160 ExtensionPrefs::Get(GetProfile())->AllowFileAccess(extension_->id()), in RunAsync() 186 ExtensionPrefs::Get(GetProfile()) in RunAsync() 189 PermissionsUpdater perms_updater(GetProfile()); in RunAsync()
|
/external/chromium_org/chrome/browser/extensions/api/sync_file_system/ |
D | sync_file_system_api.cc | 72 BrowserContext::GetStoragePartition(GetProfile(), in RunAsync() 119 GetSyncFileSystemService(GetProfile()); in RunAsync() 138 GetProfile(), render_view_host()->GetSiteInstance()) in GetFileSystemContext() 175 BrowserContext::GetStoragePartition(GetProfile(), in RunAsync() 181 GetSyncFileSystemService(GetProfile())->GetFileSyncStatus( in RunAsync() 215 BrowserContext::GetStoragePartition(GetProfile(), in RunAsync() 225 GetSyncFileSystemService(GetProfile()); in RunAsync() 291 BrowserContext::GetStoragePartition(GetProfile(), in RunAsync() 298 BrowserContext::GetStoragePartition(GetProfile(), in RunAsync() 366 GetSyncFileSystemService(GetProfile()); in RunSync()
|