Commit ca09e631 authored by hidehiko's avatar hidehiko Committed by Commit bot

ARC is not allowed for incognito profile.

IsPrimaryProfile can return true for the incognito profile
which is corresponding to the primary profile.
Exclude it from the ARC supporting.

BUG=676725
TEST=Manually made sure EventRouter does not registered to
     ArcServiceManager, even when an incognito window is opened.

Review-Url: https://codereview.chromium.org/2621293002
Cr-Commit-Position: refs/heads/master@{#442912}
parent 95ae7719
......@@ -163,6 +163,13 @@ bool ArcSessionManager::IsAllowedForProfile(const Profile* profile) {
return false;
}
// IsPrimaryProfile can return true for an incognito profile corresponding
// to the primary profile, but ARC does not support it.
if (profile->IsOffTheRecord()) {
VLOG(1) << "Incognito profile is not supported in ARC.";
return false;
}
if (profile->IsLegacySupervised()) {
VLOG(1) << "Supervised users are not supported in ARC.";
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment