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

Issue 8373027: Prevent incognito windows from opening when incognito mode is disabled. (Closed)

Created:
9 years, 2 months ago by rustema
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Erik does not do reviews, mihaip+watch_chromium.org
Visibility:
Public.

Description

Prevent incognito windows from opening when incognito mode is disabled. Prevent normal windows from opening when incognito mode is forced. BUG=97677 TEST=Added a test to chrome/browser/extensions/extension_tabs_test.cc. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108058

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added a test. #

Patch Set 3 : Moved test to extension_tabs_test.cc. #

Total comments: 2

Patch Set 4 : Default to creating incognito windows when incognito param is not specified. #

Total comments: 6

Patch Set 5 : Handle the case when args is NULL. #

Total comments: 2

Patch Set 6 : Pulled incognito decision logic into a separate function. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -33 lines) Patch
M chrome/browser/extensions/extension_tabs_apitest.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.h View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 3 4 5 3 chunks +63 lines, -32 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module_constants.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_test.cc View 1 2 3 4 2 chunks +129 lines, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
Mattias Nissler (ping if slow)
policy-wise LGTM, but please also get an LGTM from a person that knows the extension ...
9 years, 2 months ago (2011-10-24 09:20:45 UTC) #1
Finnur
Extension side LGTM. You need to fill in the TEST= line in the changelist description. ...
9 years, 2 months ago (2011-10-24 10:08:07 UTC) #2
Aaron Boodman
Where is this enforced normally (e.g., for the UI?) Maybe our code should call through ...
9 years, 2 months ago (2011-10-24 16:03:47 UTC) #3
rustema
Test added. Incognito windows can be opened in multiple places: right-clicking, opening new empty windows, ...
9 years, 2 months ago (2011-10-25 03:35:17 UTC) #4
rustema
On 2011/10/24 16:03:47, Aaron Boodman wrote: > Where is this enforced normally (e.g., for the ...
9 years, 2 months ago (2011-10-25 03:44:02 UTC) #5
Aaron Boodman
On 2011/10/25 03:44:02, rustema wrote: > On 2011/10/24 16:03:47, Aaron Boodman wrote: > > Where ...
9 years, 2 months ago (2011-10-25 03:53:42 UTC) #6
Aaron Boodman
On 2011/10/25 03:53:42, Aaron Boodman wrote: > On 2011/10/25 03:44:02, rustema wrote: > > On ...
9 years, 2 months ago (2011-10-25 03:56:15 UTC) #7
rustema
On 2011/10/25 03:56:15, Aaron Boodman wrote: > On 2011/10/25 03:53:42, Aaron Boodman wrote: > > ...
9 years, 2 months ago (2011-10-25 08:09:11 UTC) #8
Aaron Boodman
On 2011/10/25 08:09:11, rustema wrote: > On 2011/10/25 03:56:15, Aaron Boodman wrote: > > On ...
9 years, 2 months ago (2011-10-25 08:24:12 UTC) #9
Aaron Boodman
Looking at this again, if it is important that this policy be followed you should ...
9 years, 2 months ago (2011-10-25 08:35:09 UTC) #10
Mattias Nissler (ping if slow)
On 2011/10/25 08:35:09, Aaron Boodman wrote: > Looking at this again, if it is important ...
9 years, 2 months ago (2011-10-25 08:56:04 UTC) #11
rustema
I agree that enforcing the policy at the Browser level is needed. I'm going to ...
9 years, 2 months ago (2011-10-26 07:13:41 UTC) #12
pastarmovj
Seems like most has been said for this CL already. I only got two small ...
9 years, 1 month ago (2011-10-27 09:14:31 UTC) #13
Joao da Silva
http://codereview.chromium.org/8373027/diff/12001/chrome/browser/extensions/extension_tabs_module.cc File chrome/browser/extensions/extension_tabs_module.cc (right): http://codereview.chromium.org/8373027/diff/12001/chrome/browser/extensions/extension_tabs_module.cc#newcode390 chrome/browser/extensions/extension_tabs_module.cc:390: const IncognitoModePrefs::Availability incognito_availability = These checks are scoped inside ...
9 years, 1 month ago (2011-10-28 11:05:29 UTC) #14
rustema
Thanks for comments and suggestions, guys! Aaron, can you please take another look? http://codereview.chromium.org/8373027/diff/12001/chrome/browser/extensions/extension_tabs_apitest.cc File ...
9 years, 1 month ago (2011-10-29 06:43:20 UTC) #15
Aaron Boodman
lgtm You don't need to wait for another review from me, but factoring this out ...
9 years, 1 month ago (2011-10-29 20:29:00 UTC) #16
rustema
Thanks for the review everyone! Will submit tomorrow morning. http://codereview.chromium.org/8373027/diff/19001/chrome/browser/extensions/extension_tabs_module.cc File chrome/browser/extensions/extension_tabs_module.cc (right): http://codereview.chromium.org/8373027/diff/19001/chrome/browser/extensions/extension_tabs_module.cc#newcode355 chrome/browser/extensions/extension_tabs_module.cc:355: ...
9 years, 1 month ago (2011-10-31 07:59:57 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rustema@google.com/8373027/23001
9 years, 1 month ago (2011-10-31 20:06:25 UTC) #18
commit-bot: I haz the power
Try job failure for 8373027-23001 (retry) on linux_rel for step "ui_tests". It's a second try, ...
9 years, 1 month ago (2011-10-31 21:05:50 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rustema@google.com/8373027/23001
9 years, 1 month ago (2011-11-01 00:10:49 UTC) #20
commit-bot: I haz the power
9 years, 1 month ago (2011-11-01 02:01:13 UTC) #21
Change committed as 108058

Powered by Google App Engine
This is Rietveld 408576698