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

Unified Diff: chrome/browser/chromeos/arc/arc_session_manager.cc

Issue 2621293002: ARC is not allowed for incognito profile. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_session_manager.cc
diff --git a/chrome/browser/chromeos/arc/arc_session_manager.cc b/chrome/browser/chromeos/arc/arc_session_manager.cc
index 876e24b11d097c8832adde5bf706d1a84bd8bd8e..4858e187b06495dc36b4f14436338ec23116974e 100644
--- a/chrome/browser/chromeos/arc/arc_session_manager.cc
+++ b/chrome/browser/chromeos/arc/arc_session_manager.cc
@@ -163,6 +163,13 @@ bool ArcSessionManager::IsAllowedForProfile(const Profile* profile) {
return false;
}
+ // IsPrimaryProfile can return true for an incognito profile corresponding
hidehiko 2017/01/11 14:29:42 Note: I'm not very sure if this is intentional beh
+ // 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698