Home | History | Annotate | Download | only in integration

Lines Matching full:profile

26 ThemeService* GetThemeService(Profile* profile) {
27 return ThemeServiceFactory::GetForProfile(profile);
38 std::string GetThemeID(Profile* profile) {
39 return GetThemeService(profile)->GetThemeID();
42 bool UsingCustomTheme(Profile* profile) {
43 return GetThemeID(profile) != ThemeService::kDefaultThemeID;
46 bool UsingDefaultTheme(Profile* profile) {
47 return GetThemeService(profile)->UsingDefaultTheme();
50 bool UsingNativeTheme(Profile* profile) {
51 return GetThemeService(profile)->UsingNativeTheme();
54 bool ThemeIsPendingInstall(Profile* profile, const std::string& id) {
56 IsExtensionPendingInstallForSync(profile, id);
59 bool HasOrWillHaveCustomTheme(Profile* profile, const std::string& id) {
60 return (GetThemeID(profile) == id) || ThemeIsPendingInstall(profile, id);
63 void UseCustomTheme(Profile* profile, int index) {
65 profile, MakeName(index), extensions::Manifest::TYPE_THEME);
68 void UseDefaultTheme(Profile* profile) {
69 GetThemeService(profile)->UseDefaultTheme();
72 void UseNativeTheme(Profile* profile) {
74 GetThemeService(profile)->SetNativeTheme();