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

Issue 2645453003: Properly detect if Chrome is incognito (Closed)

Created:
3 years, 11 months ago by sfiera
Modified:
3 years, 11 months ago
CC:
chromium-reviews, marq+watch_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Properly detect if Chrome is incognito I misunderstood the comment for HasOffTheRecordChromeBrowserState(). BUG=674441 Review-Url: https://codereview.chromium.org/2645453003 Cr-Commit-Position: refs/heads/master@{#444412} Committed: https://chromium.googlesource.com/chromium/src/+/11764f420eec90c09ae7001aa753fef1e343c493

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc View 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 16 (10 generated)
sfiera
3 years, 11 months ago (2017-01-18 17:14:35 UTC) #3
noyau (Ping after 24h)
lgtm
3 years, 11 months ago (2017-01-18 17:30:16 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2645453003/1
3 years, 11 months ago (2017-01-18 17:36:10 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/11764f420eec90c09ae7001aa753fef1e343c493
3 years, 11 months ago (2017-01-18 17:41:05 UTC) #13
sdefresne
https://codereview.chromium.org/2645453003/diff/1/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc File ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc (right): https://codereview.chromium.org/2645453003/diff/1/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc#newcode60 ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc:60: return state == state->GetOriginalChromeBrowserState(); Why not just use IsOffTheRecord() ...
3 years, 11 months ago (2017-01-19 12:14:08 UTC) #15
sdefresne
3 years, 11 months ago (2017-01-19 12:14:25 UTC) #16
Message was sent while issue was closed.
On 2017/01/19 12:14:08, sdefresne wrote:
>
https://codereview.chromium.org/2645453003/diff/1/ios/chrome/browser/ui/webui...
> File ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc (right):
> 
>
https://codereview.chromium.org/2645453003/diff/1/ios/chrome/browser/ui/webui...
> ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc:60: return state ==
> state->GetOriginalChromeBrowserState();
> Why not just use IsOffTheRecord() instead?
> 
>   auto* state = ios::ChromeBrowserState::FromWebUIIOS(web_ui());
>   return state->IsOffTheRecord();

I meant !state->IsOffTheRecord();

Powered by Google App Engine
This is Rietveld 408576698