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

Unified Diff: chrome/browser/themes/theme_service.h

Issue 22578004: Check if theme is ready. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/themes/theme_service.cc » ('j') | chrome/browser/ui/gtk/gtk_theme_service.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/theme_service.h
diff --git a/chrome/browser/themes/theme_service.h b/chrome/browser/themes/theme_service.h
index 37e951f51431f3db95dce34dc73919cbc1fe8573..9038446ac6a5965b9364afdc7bedbc05af890714 100644
--- a/chrome/browser/themes/theme_service.h
+++ b/chrome/browser/themes/theme_service.h
@@ -185,6 +185,11 @@ class ThemeService : public base::NonThreadSafe,
return theme_supplier_.get();
}
+ // True if the theme service is ready to be used.
+ // TODO(pkotwicz): Add DCHECKS to the theme service's getters once
+ // ThemeSource no longer uses the ThemeService when it is not ready.
+ bool ready_;
+
private:
friend class theme_service_internal::ThemeServiceTest;
@@ -239,11 +244,6 @@ class ThemeService : public base::NonThreadSafe,
ui::ResourceBundle& rb_;
Profile* profile_;
- // True if the theme service is ready to be used.
- // TODO(pkotwicz): Add DCHECKS to the theme service's getters once
- // ThemeSource no longer uses the ThemeService when it is not ready.
- bool ready_;
-
scoped_refptr<CustomThemeSupplier> theme_supplier_;
// The id of the theme extension which has just been installed but has not
« no previous file with comments | « no previous file | chrome/browser/themes/theme_service.cc » ('j') | chrome/browser/ui/gtk/gtk_theme_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698