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

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

Issue 355233002: Fix build when ENABLE_MANAGED_USERS is not defined (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include missing browsertest .js file in chrome_tests.gypi Created 6 years, 2 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
« 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // Saves the filename of the cached theme pack. 201 // Saves the filename of the cached theme pack.
202 void SavePackName(const base::FilePath& pack_path); 202 void SavePackName(const base::FilePath& pack_path);
203 203
204 // Save the id of the last theme installed. 204 // Save the id of the last theme installed.
205 void SaveThemeID(const std::string& id); 205 void SaveThemeID(const std::string& id);
206 206
207 // Implementation of SetTheme() (and the fallback from LoadThemePrefs() in 207 // Implementation of SetTheme() (and the fallback from LoadThemePrefs() in
208 // case we don't have a theme pack). 208 // case we don't have a theme pack).
209 void BuildFromExtension(const extensions::Extension* extension); 209 void BuildFromExtension(const extensions::Extension* extension);
210 210
211 #if defined(ENABLE_MANAGED_USERS)
211 // Returns true if the profile belongs to a supervised user. 212 // Returns true if the profile belongs to a supervised user.
212 bool IsSupervisedUser() const; 213 bool IsSupervisedUser() const;
213 214
214 // Sets the current theme to the supervised user theme. Should only be used 215 // Sets the current theme to the supervised user theme. Should only be used
215 // for supervised user profiles. 216 // for supervised user profiles.
216 void SetSupervisedUserTheme(); 217 void SetSupervisedUserTheme();
218 #endif
217 219
218 #if defined(OS_MACOSX) 220 #if defined(OS_MACOSX)
219 // |nsimage_cache_| retains the images it has cached. 221 // |nsimage_cache_| retains the images it has cached.
220 typedef std::map<int, NSImage*> NSImageMap; 222 typedef std::map<int, NSImage*> NSImageMap;
221 mutable NSImageMap nsimage_cache_; 223 mutable NSImageMap nsimage_cache_;
222 224
223 // |nscolor_cache_| retains the colors it has cached. 225 // |nscolor_cache_| retains the colors it has cached.
224 typedef std::map<int, NSColor*> NSColorMap; 226 typedef std::map<int, NSColor*> NSColorMap;
225 mutable NSColorMap nscolor_cache_; 227 mutable NSColorMap nscolor_cache_;
226 228
(...skipping 19 matching lines...) Expand all
246 content::NotificationRegistrar registrar_; 248 content::NotificationRegistrar registrar_;
247 249
248 scoped_ptr<ThemeSyncableService> theme_syncable_service_; 250 scoped_ptr<ThemeSyncableService> theme_syncable_service_;
249 251
250 base::WeakPtrFactory<ThemeService> weak_ptr_factory_; 252 base::WeakPtrFactory<ThemeService> weak_ptr_factory_;
251 253
252 DISALLOW_COPY_AND_ASSIGN(ThemeService); 254 DISALLOW_COPY_AND_ASSIGN(ThemeService);
253 }; 255 };
254 256
255 #endif // CHROME_BROWSER_THEMES_THEME_SERVICE_H_ 257 #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