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

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

Issue 2645453003: Properly detect if Chrome is incognito (Closed)
Patch Set: 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
« 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 c36e931e5feb725364f69e8e4331433b69d618bc..5f39a6945cb507b37994ad2449534c89141cf003 100644
--- a/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
+++ b/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc
@@ -57,7 +57,7 @@ void IOSNTPTilesInternalsMessageHandlerBridge::RegisterMessages() {
bool IOSNTPTilesInternalsMessageHandlerBridge::SupportsNTPTiles() {
auto* state = ios::ChromeBrowserState::FromWebUIIOS(web_ui());
- return !state->HasOffTheRecordChromeBrowserState();
+ return state == state->GetOriginalChromeBrowserState();
sdefresne 2017/01/19 12:14:07 Why not just use IsOffTheRecord() instead? auto
}
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