Detect that device is in demo mode based on the domain that it is
enrolled to.

This change will be followed with checking device install attributes
as a part of demo mode detection process.

      Manually check different device modes.

Bug: 855669
Test: Run demo_session_unittest and demo_session_browsertest.
Change-Id: Ic4d65a77b4e02cf3dc4dd5955d044ade79db4032
Commit-Queue: Aga Wronska <>
Reviewed-by: Michael Giuffrida <>
Reviewed-by: Istiaque Ahmed <>
Reviewed-by: Toni Barzic <>
Cr-Commit-Position: refs/heads/master@{#578063}
9 files changed