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
Reviewed-on: https://chromium-review.googlesource.com/1148930
Commit-Queue: Aga Wronska <agawronska@chromium.org>
Reviewed-by: Michael Giuffrida <michaelpg@chromium.org>
Reviewed-by: Istiaque Ahmed <lazyboy@chromium.org>
Reviewed-by: Toni Barzic <tbarzic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#578063}
9 files changed