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

Unified Diff: ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc

Issue 2747143003: Check incognito profile appropriately on iOS (Closed)
Patch Set: Created 3 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
diff --git a/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc b/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
index 8c3753aca9899a3bd459656187a805c2f82cdab6..2f1bb4ebc29bb2e44503ee11cf0b91c05972e2d6 100644
--- a/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
+++ b/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
@@ -54,8 +54,7 @@ void IOSNTPTilesInternalsMessageHandlerBridge::RegisterMessages() {
}
bool IOSNTPTilesInternalsMessageHandlerBridge::SupportsNTPTiles() {
- auto* state = ios::ChromeBrowserState::FromWebUIIOS(web_ui());
- return state == state->GetOriginalChromeBrowserState();
+ return !ios::ChromeBrowserState::FromWebUIIOS(web_ui())->IsOffTheRecord();
}
bool IOSNTPTilesInternalsMessageHandlerBridge::DoesSourceExist(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698