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

Issue 336213005: Disable incognito link if parental control is on (Closed)

Created:
6 years, 6 months ago by guohui
Modified:
6 years, 6 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Disable incognito link if parental control is on The CL disables the incognito link on the gaia page if parental control is on. It adds a cached version for windows parental control check so that it may be accessed from IO thread. A similar CL for thread-safe android parental control check is under review at https://chrome-internal-review.googlesource.com/#/c/166265/. BUG=383682 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278848

Patch Set 1 : #

Patch Set 2 : moves parental control check to profile_io_data #

Total comments: 10

Patch Set 3 : comments addressed #

Total comments: 3

Patch Set 4 : mmenke's comments addressed #

Total comments: 2

Patch Set 5 : sky's comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -2 lines) Patch
M chrome/browser/chrome_browser_main_win.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/prefs/incognito_mode_prefs.h View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/prefs/incognito_mode_prefs.cc View 1 2 3 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_header_helper.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
guohui
Hey, could you please review the CL? cpu@ for base/win/... bauserb@ for chrome/browser/prefs/... rogerta@ for ...
6 years, 6 months ago (2014-06-16 22:58:34 UTC) #1
guohui
moved the parental control check to profile_io_data in patch 2. +mmenke@ for owner review of ...
6 years, 6 months ago (2014-06-16 23:16:40 UTC) #2
mmenke
https://codereview.chromium.org/336213005/diff/100001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/336213005/diff/100001/chrome/browser/profiles/profile_io_data.cc#newcode474 chrome/browser/profiles/profile_io_data.cc:474: IncognitoModePrefs::GetAvailability(profile->GetPrefs()); Is there a reason we can't use a ...
6 years, 6 months ago (2014-06-16 23:25:12 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/336213005/diff/100001/base/win/metro.cc File base/win/metro.cc (right): https://codereview.chromium.org/336213005/diff/100001/base/win/metro.cc#newcode14 base/win/metro.cc:14: bool parental_control_logging_required = false; Global (mutable) variables are usually ...
6 years, 6 months ago (2014-06-17 09:15:45 UTC) #4
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/336213005/diff/100001/base/win/metro.h File base/win/metro.h (right): https://codereview.chromium.org/336213005/diff/100001/base/win/metro.h#newcode91 base/win/metro.h:91: BASE_EXPORT bool IsParentalControlActivityLoggingOnCached(); Most functions in this file are ...
6 years, 6 months ago (2014-06-17 16:35:51 UTC) #5
guohui
https://codereview.chromium.org/336213005/diff/100001/base/win/metro.cc File base/win/metro.cc (right): https://codereview.chromium.org/336213005/diff/100001/base/win/metro.cc#newcode14 base/win/metro.cc:14: bool parental_control_logging_required = false; On 2014/06/17 09:15:45, Bernhard Bauer ...
6 years, 6 months ago (2014-06-17 18:45:04 UTC) #6
mmenke
https://codereview.chromium.org/336213005/diff/120001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/336213005/diff/120001/chrome/browser/profiles/profile_io_data.cc#newcode141 chrome/browser/profiles/profile_io_data.cc:141: bool g_parental_control_on = false; Why not make this a ...
6 years, 6 months ago (2014-06-17 20:41:44 UTC) #7
mmenke
https://codereview.chromium.org/336213005/diff/120001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/336213005/diff/120001/chrome/browser/profiles/profile_io_data.cc#newcode141 chrome/browser/profiles/profile_io_data.cc:141: bool g_parental_control_on = false; On 2014/06/17 20:41:44, mmenke wrote: ...
6 years, 6 months ago (2014-06-17 20:44:14 UTC) #8
cpu_(ooo_6.6-7.5)
I have no file to review thusly I graciously exit the stage.
6 years, 6 months ago (2014-06-18 17:52:37 UTC) #9
guohui
https://codereview.chromium.org/336213005/diff/120001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/336213005/diff/120001/chrome/browser/profiles/profile_io_data.cc#newcode141 chrome/browser/profiles/profile_io_data.cc:141: bool g_parental_control_on = false; On 2014/06/17 20:44:13, mmenke wrote: ...
6 years, 6 months ago (2014-06-18 19:36:38 UTC) #10
guohui
+sky for owner review of chrome/browser/chrome_browser_main.cc
6 years, 6 months ago (2014-06-18 19:37:03 UTC) #11
sky
https://codereview.chromium.org/336213005/diff/160001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/336213005/diff/160001/chrome/browser/chrome_browser_main.cc#newcode1537 chrome/browser/chrome_browser_main.cc:1537: IncognitoModePrefs::InitializePlatformParentalControls(); Can this be moved to chrome_browser_main_win?
6 years, 6 months ago (2014-06-19 14:56:15 UTC) #12
mmenke
I no longer own any of the files being modified, so defer to other reviewers ...
6 years, 6 months ago (2014-06-19 15:03:58 UTC) #13
Roger Tawa OOO till Jul 10th
lgtm
6 years, 6 months ago (2014-06-19 17:35:13 UTC) #14
guohui
https://codereview.chromium.org/336213005/diff/160001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/336213005/diff/160001/chrome/browser/chrome_browser_main.cc#newcode1537 chrome/browser/chrome_browser_main.cc:1537: IncognitoModePrefs::InitializePlatformParentalControls(); On 2014/06/19 14:56:15, sky wrote: > Can this ...
6 years, 6 months ago (2014-06-19 17:51:41 UTC) #15
guohui
On 2014/06/19 17:51:41, guohui wrote: > https://codereview.chromium.org/336213005/diff/160001/chrome/browser/chrome_browser_main.cc > File chrome/browser/chrome_browser_main.cc (right): > > https://codereview.chromium.org/336213005/diff/160001/chrome/browser/chrome_browser_main.cc#newcode1537 > ...
6 years, 6 months ago (2014-06-20 02:02:36 UTC) #16
Bernhard Bauer
lgtm
6 years, 6 months ago (2014-06-20 08:08:34 UTC) #17
guohui
On 2014/06/20 08:08:34, Bernhard Bauer wrote: > lgtm ping sky@? this is a release blocker ...
6 years, 6 months ago (2014-06-20 17:44:29 UTC) #18
sky
LGTM
6 years, 6 months ago (2014-06-20 19:24:42 UTC) #19
guohui
The CQ bit was checked by guohui@chromium.org
6 years, 6 months ago (2014-06-20 19:24:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/336213005/180001
6 years, 6 months ago (2014-06-20 19:28:01 UTC) #21
commit-bot: I haz the power
6 years, 6 months ago (2014-06-20 22:46:40 UTC) #22
Message was sent while issue was closed.
Change committed as 278848

Powered by Google App Engine
This is Rietveld 408576698