Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: chrome/browser/themes/theme_service.h

Issue 316863002: Rename "managed (mode|user)" to "supervised user" (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/themes/theme_properties.h ('k') | chrome/browser/themes/theme_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_THEMES_THEME_SERVICE_H_ 5 #ifndef CHROME_BROWSER_THEMES_THEME_SERVICE_H_
6 #define CHROME_BROWSER_THEMES_THEME_SERVICE_H_ 6 #define CHROME_BROWSER_THEMES_THEME_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // Saves the filename of the cached theme pack. 197 // Saves the filename of the cached theme pack.
198 void SavePackName(const base::FilePath& pack_path); 198 void SavePackName(const base::FilePath& pack_path);
199 199
200 // Save the id of the last theme installed. 200 // Save the id of the last theme installed.
201 void SaveThemeID(const std::string& id); 201 void SaveThemeID(const std::string& id);
202 202
203 // Implementation of SetTheme() (and the fallback from LoadThemePrefs() in 203 // Implementation of SetTheme() (and the fallback from LoadThemePrefs() in
204 // case we don't have a theme pack). 204 // case we don't have a theme pack).
205 void BuildFromExtension(const extensions::Extension* extension); 205 void BuildFromExtension(const extensions::Extension* extension);
206 206
207 // Returns true if the profile belongs to a managed user. 207 // Returns true if the profile belongs to a supervised user.
208 bool IsManagedUser() const; 208 bool IsSupervisedUser() const;
209 209
210 // Sets the current theme to the managed user theme. Should only be used for 210 // Sets the current theme to the supervised user theme. Should only be used
211 // managed user profiles. 211 // for supervised user profiles.
212 void SetManagedUserTheme(); 212 void SetSupervisedUserTheme();
213
214 // Sets the managed user theme if the user has no custom theme yet.
215 void OnManagedUserInitialized();
216 213
217 #if defined(OS_MACOSX) 214 #if defined(OS_MACOSX)
218 // |nsimage_cache_| retains the images it has cached. 215 // |nsimage_cache_| retains the images it has cached.
219 typedef std::map<int, NSImage*> NSImageMap; 216 typedef std::map<int, NSImage*> NSImageMap;
220 mutable NSImageMap nsimage_cache_; 217 mutable NSImageMap nsimage_cache_;
221 218
222 // |nscolor_cache_| retains the colors it has cached. 219 // |nscolor_cache_| retains the colors it has cached.
223 typedef std::map<int, NSColor*> NSColorMap; 220 typedef std::map<int, NSColor*> NSColorMap;
224 mutable NSColorMap nscolor_cache_; 221 mutable NSColorMap nscolor_cache_;
225 222
(...skipping 19 matching lines...) Expand all
245 content::NotificationRegistrar registrar_; 242 content::NotificationRegistrar registrar_;
246 243
247 scoped_ptr<ThemeSyncableService> theme_syncable_service_; 244 scoped_ptr<ThemeSyncableService> theme_syncable_service_;
248 245
249 base::WeakPtrFactory<ThemeService> weak_ptr_factory_; 246 base::WeakPtrFactory<ThemeService> weak_ptr_factory_;
250 247
251 DISALLOW_COPY_AND_ASSIGN(ThemeService); 248 DISALLOW_COPY_AND_ASSIGN(ThemeService);
252 }; 249 };
253 250
254 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ 251 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/themes/theme_properties.h ('k') | chrome/browser/themes/theme_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698