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

Unified Diff: chrome/browser/signin/signin_header_helper.cc

Issue 336213005: Disable incognito link if parental control is on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mmenke's comments addressed Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/signin/signin_header_helper.cc
diff --git a/chrome/browser/signin/signin_header_helper.cc b/chrome/browser/signin/signin_header_helper.cc
index 92c87d5090d837641393eced672093f8f14456db..50ffc63c9091b60a3c3a60d5a28d5d11229b6a79 100644
--- a/chrome/browser/signin/signin_header_helper.cc
+++ b/chrome/browser/signin/signin_header_helper.cc
@@ -168,9 +168,9 @@ bool AppendMirrorRequestHeaderIfPossible(
std::string account_id(io_data->google_services_account_id()->GetValue());
int profile_mode_mask = PROFILE_MODE_DEFAULT;
- // TODO(guohui): Needs to check for parent control as well.
if (io_data->incognito_availibility()->GetValue() ==
- IncognitoModePrefs::DISABLED) {
+ IncognitoModePrefs::DISABLED ||
+ IncognitoModePrefs::ArePlatformParentalControlsEnabledCached()) {
profile_mode_mask |= PROFILE_MODE_INCOGNITO_DISABLED;
}
« chrome/browser/chrome_browser_main.cc ('K') | « chrome/browser/prefs/incognito_mode_prefs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698