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

Issue 15670011: Prevent new Browser windows from violating the IncognitoModeAvailability policy. (Closed)

Created:
7 years, 6 months ago by Joao da Silva
Modified:
7 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Prevent new Browser windows from violating the IncognitoModeAvailability policy. This policy may disable incognito mode, or set it to enforced (i.e. disable non-incognito windows). This change introduces a CHECK that prevents any code paths from opening a disabled window type; such code paths should still be fixed, but this CHECK prevents working around the policy. BUG=244246 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204011

Patch Set 1 #

Patch Set 2 : fix browser_tests #

Total comments: 2

Patch Set 3 : moved comment #

Patch Set 4 : rebase after fixing the known offenders #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M chrome/browser/ui/browser.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Joao da Silva
Please review: @mnissler: prefs/ @pkasting: ui/ So this is a big hammer but it's better ...
7 years, 6 months ago (2013-05-29 11:26:18 UTC) #1
Mattias Nissler (ping if slow)
LGTM with a nit. What's the plan for the known offenders? https://codereview.chromium.org/15670011/diff/5001/chrome/browser/prefs/incognito_mode_prefs.cc File chrome/browser/prefs/incognito_mode_prefs.cc (right): ...
7 years, 6 months ago (2013-05-29 11:33:08 UTC) #2
Joao da Silva
The known offender listed in the bug will be fixed in separate CLs; unknown offenders ...
7 years, 6 months ago (2013-05-29 11:40:40 UTC) #3
Peter Kasting
CHECK means this can't happen. It seems like right now, it can happen. Since this ...
7 years, 6 months ago (2013-05-29 18:18:48 UTC) #4
Joao da Silva
On 2013/05/29 18:18:48, Peter Kasting wrote: > CHECK means this can't happen. It seems like ...
7 years, 6 months ago (2013-05-30 00:22:15 UTC) #5
Peter Kasting
On 2013/05/30 00:22:15, Joao da Silva wrote: > On 2013/05/29 18:18:48, Peter Kasting wrote: > ...
7 years, 6 months ago (2013-05-30 00:27:11 UTC) #6
Peter Kasting
And LGTM since you probably need that to do that.
7 years, 6 months ago (2013-05-30 00:27:33 UTC) #7
Joao da Silva
On 2013/05/30 00:27:11, Peter Kasting wrote: > On 2013/05/30 00:22:15, Joao da Silva wrote: > ...
7 years, 6 months ago (2013-06-04 12:05:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/15670011/31001
7 years, 6 months ago (2013-06-04 12:05:35 UTC) #9
commit-bot: I haz the power
7 years, 6 months ago (2013-06-04 19:19:12 UTC) #10
Message was sent while issue was closed.
Change committed as 204011

Powered by Google App Engine
This is Rietveld 408576698