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

Unified Diff: components/ntp_tiles/webui/ntp_tiles_internals_message_handler_client.h

Issue 2584483002: Fix ntp-tiles-internals crash in incognito mode (Closed)
Patch Set: rebase Created 3 years, 11 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
Index: components/ntp_tiles/webui/ntp_tiles_internals_message_handler_client.h
diff --git a/components/ntp_tiles/webui/ntp_tiles_internals_message_handler_client.h b/components/ntp_tiles/webui/ntp_tiles_internals_message_handler_client.h
index 4a917008cbf2be1c1ac18e0923ac5a30bd961fcf..d26972d5fc6e725d9cd11c4f8561cea878ca9c45 100644
--- a/components/ntp_tiles/webui/ntp_tiles_internals_message_handler_client.h
+++ b/components/ntp_tiles/webui/ntp_tiles_internals_message_handler_client.h
@@ -31,6 +31,9 @@ class NTPTilesInternalsMessageHandlerClient {
// Returns the PrefService for the embedder and containing WebUI page.
virtual PrefService* GetPrefs() = 0;
+ // False if in a browser mode (e.g. incognito) where tiles aren't supported.
+ virtual bool SupportsNTPTiles() = 0;
+
// Returns true if the given source is enabled (even if, in practice, none of
// the tiles would come from it).
virtual bool DoesSourceExist(NTPTileSource source) = 0;

Powered by Google App Engine
This is Rietveld 408576698