OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" | 5 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
11 #include "base/location.h" | 13 #include "base/location.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
13 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
14 #include "base/metrics/histogram_base.h" | 17 #include "base/metrics/histogram_base.h" |
15 #include "base/metrics/histogram_macros.h" | 18 #include "base/metrics/histogram_macros.h" |
16 #include "base/time/time.h" | 19 #include "base/time/time.h" |
17 #include "chrome/browser/chromeos/policy/proto/install_attributes.pb.h" | 20 #include "chrome/browser/chromeos/policy/proto/install_attributes.pb.h" |
18 #include "chromeos/cryptohome/cryptohome_util.h" | 21 #include "chromeos/cryptohome/cryptohome_util.h" |
19 #include "chromeos/dbus/dbus_thread_manager.h" | 22 #include "chromeos/dbus/dbus_thread_manager.h" |
20 #include "google_apis/gaia/gaia_auth_util.h" | 23 #include "google_apis/gaia/gaia_auth_util.h" |
21 | 24 |
22 namespace policy { | 25 namespace policy { |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 &consumer_kiosk_enabled) && | 491 &consumer_kiosk_enabled) && |
489 consumer_kiosk_enabled == "true") { | 492 consumer_kiosk_enabled == "true") { |
490 registration_mode_ = DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH; | 493 registration_mode_ = DEVICE_MODE_CONSUMER_KIOSK_AUTOLAUNCH; |
491 } else if (enterprise_user.empty() && enterprise_owned != "true") { | 494 } else if (enterprise_user.empty() && enterprise_owned != "true") { |
492 // |registration_user_| is empty on consumer devices. | 495 // |registration_user_| is empty on consumer devices. |
493 registration_mode_ = DEVICE_MODE_CONSUMER; | 496 registration_mode_ = DEVICE_MODE_CONSUMER; |
494 } | 497 } |
495 } | 498 } |
496 | 499 |
497 } // namespace policy | 500 } // namespace policy |
OLD | NEW |