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 fd7dee0d232aa637a3da456019262219cf486a71..a6ade4a3331c747c4325e950f3d7c092c0b16ea6 100644 |
--- a/chrome/browser/signin/signin_header_helper.cc |
+++ b/chrome/browser/signin/signin_header_helper.cc |
@@ -181,9 +181,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; |
} |