summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/ui/webui/ntp/ntp_resource_cache.h')
-rw-r--r--chromium/chrome/browser/ui/webui/ntp/ntp_resource_cache.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/chromium/chrome/browser/ui/webui/ntp/ntp_resource_cache.h b/chromium/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
index 354de3c3e10..d6f96e8b7bb 100644
--- a/chromium/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
+++ b/chromium/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
@@ -13,6 +13,7 @@
#include "components/prefs/pref_change_registrar.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+#include "ui/native_theme/native_theme.h"
#include "ui/native_theme/native_theme_observer.h"
class Profile;
@@ -26,10 +27,6 @@ namespace content {
class RenderProcessHost;
}
-namespace ui {
-class NativeTheme;
-}
-
// This class keeps a cache of NTP resources (HTML and CSS) so we don't have to
// regenerate them all the time.
// Note: This is only used for incognito and guest mode NTPs (NewTabUI), as well
@@ -97,7 +94,8 @@ class NTPResourceCache : public content::NotificationObserver,
// Set based on platform_util::IsSwipeTrackingFromScrollEventsEnabled.
bool is_swipe_tracking_from_scroll_events_enabled_;
- ScopedObserver<ui::NativeTheme, NTPResourceCache> theme_observer_;
+ ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> theme_observer_{
+ this};
DISALLOW_COPY_AND_ASSIGN(NTPResourceCache);
};