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

Issue 6313008: Implement pref policy for disabling incognito mode. (Closed)

Created:
9 years, 11 months ago by Finnur
Modified:
9 years, 6 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Implement pref policy for disabling incognito mode. BUG=66413 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72624

Patch Set 1 #

Total comments: 11

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -15 lines) Patch
M chrome/app/policy/policy_templates.json View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/policy/config_dir_policy_provider_unittest.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store_unittest.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_provider_win_unittest.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/policy/configuration_policy_store_interface.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 6 chunks +13 lines, -3 lines 2 comments Download
M chrome/browser/ui/browser_init.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/common/policy_constants.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/policy_constants.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Finnur
9 years, 11 months ago (2011-01-21 16:00:32 UTC) #1
danno
here you go... http://codereview.chromium.org/6313008/diff/1/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/6313008/diff/1/chrome/app/policy/policy_templates.json#newcode209 chrome/app/policy/policy_templates.json:209: 'name': 'IncognitoEnabled', I'm wondering if this ...
9 years, 11 months ago (2011-01-24 12:09:10 UTC) #2
Finnur
Thanks. Replies: http://codereview.chromium.org/6313008/diff/1/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/6313008/diff/1/chrome/app/policy/policy_templates.json#newcode209 chrome/app/policy/policy_templates.json:209: 'name': 'IncognitoEnabled', Well, I think we are ...
9 years, 11 months ago (2011-01-24 13:14:32 UTC) #3
danno
LGTM, if you address the two new comments. I leave the Enabled/Disable call up to ...
9 years, 11 months ago (2011-01-24 14:45:42 UTC) #4
Finnur
http://codereview.chromium.org/6313008/diff/1/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): http://codereview.chromium.org/6313008/diff/1/chrome/app/policy/policy_templates.json#newcode209 chrome/app/policy/policy_templates.json:209: 'name': 'IncognitoEnabled', Who? Nissler? On 2011/01/24 14:45:42, danno wrote: ...
9 years, 11 months ago (2011-01-24 18:43:10 UTC) #5
Mattias Nissler (ping if slow)
Will look at it tomorrow. On Jan 24, 2011 7:43 PM, <finnur@chromium.org> wrote: > > ...
9 years, 11 months ago (2011-01-24 18:47:27 UTC) #6
Mattias Nissler (ping if slow)
LGTM with some comments. Can you also add the parameterized test case instantiations for your ...
9 years, 11 months ago (2011-01-25 09:33:43 UTC) #7
Finnur
> Can you also add the parameterized test case instantiations Done. Can you take a ...
9 years, 11 months ago (2011-01-25 15:28:03 UTC) #8
Mattias Nissler (ping if slow)
On 2011/01/25 15:28:03, Finnur wrote: > > Can you also add the parameterized test case ...
9 years, 11 months ago (2011-01-25 15:54:23 UTC) #9
Finnur
No, looking at this again I think you are probably right. I will change the ...
9 years, 11 months ago (2011-01-25 16:31:13 UTC) #10
Mattias Nissler (ping if slow)
LGTM On 2011/01/25 16:31:13, Finnur wrote: > No, looking at this again I think you ...
9 years, 11 months ago (2011-01-25 16:35:28 UTC) #11
Finnur
http://codereview.chromium.org/6313008/diff/44001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/6313008/diff/44001/chrome/browser/ui/browser.cc#newcode229 chrome/browser/ui/browser.cc:229: profile_->GetPrefs(), this); Daniel/Matthias: I checked this in after the ...
9 years, 11 months ago (2011-01-26 13:23:38 UTC) #12
Finnur
9 years, 11 months ago (2011-01-26 13:44:35 UTC) #13
http://codereview.chromium.org/6313008/diff/44001/chrome/browser/ui/browser.cc
File chrome/browser/ui/browser.cc (right):

http://codereview.chromium.org/6313008/diff/44001/chrome/browser/ui/browser.c...
chrome/browser/ui/browser.cc:229: profile_->GetPrefs(), this);
Hmm... I believe this is because of a missing Destroy() for the pref I Init...

On 2011/01/26 13:23:38, Finnur wrote:
> Daniel/Matthias: I checked this in after the try servers went green and the
tree
> lit up light a Christmas tree due to crashes in tests (a NOTREACHED).
> 
> Then I commented out everything in this CL except the pref definition consts
and
> left these two lines above in but it still crashes. If I comment these two
lines
> out, then the tests pass.
> 
> The NOTREACHED I'm seeing is in
> BookmarkBarView::BookmarkModelBeingDeleted
> 
>   // In normal shutdown The bookmark model should never be deleted before us.
>   // When X exits suddenly though, it can happen, This code exists
>   // to check for regressions in shutdown code and not crash.
>   if (!browser_shutdown::ShuttingDownWithoutClosingBrowsers())
>     NOTREACHED();
> 
> The thing is that ShuttingDownWithoutClosingBrowsers() always returns false,
> except on certain scenarios on Linux. 
> 
> This makes no sense... Have you guys seen anything like this? Why is adding
one
> more Init pref call here so disastrous??

Powered by Google App Engine
This is Rietveld 408576698