| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 14 #include "chrome/browser/policy/proto/chromeos/install_attributes.pb.h" | 14 #include "chrome/browser/chromeos/policy/proto/install_attributes.pb.h" |
| 15 #include "chromeos/cryptohome/cryptohome_util.h" | 15 #include "chromeos/cryptohome/cryptohome_util.h" |
| 16 #include "chromeos/dbus/dbus_thread_manager.h" | 16 #include "chromeos/dbus/dbus_thread_manager.h" |
| 17 #include "google_apis/gaia/gaia_auth_util.h" | 17 #include "google_apis/gaia/gaia_auth_util.h" |
| 18 | 18 |
| 19 namespace policy { | 19 namespace policy { |
| 20 | 20 |
| 21 namespace cryptohome_util = chromeos::cryptohome_util; | 21 namespace cryptohome_util = chromeos::cryptohome_util; |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 &consumer_kiosk_enabled) && | 366 &consumer_kiosk_enabled) && |
| 367 consumer_kiosk_enabled == "true") { | 367 consumer_kiosk_enabled == "true") { |
| 368 registration_mode_ = DEVICE_MODE_CONSUMER_KIOSK; | 368 registration_mode_ = DEVICE_MODE_CONSUMER_KIOSK; |
| 369 } else if (enterprise_user.empty() && enterprise_owned != "true") { | 369 } else if (enterprise_user.empty() && enterprise_owned != "true") { |
| 370 // |registration_user_| is empty on consumer devices. | 370 // |registration_user_| is empty on consumer devices. |
| 371 registration_mode_ = DEVICE_MODE_CONSUMER; | 371 registration_mode_ = DEVICE_MODE_CONSUMER; |
| 372 } | 372 } |
| 373 } | 373 } |
| 374 | 374 |
| 375 } // namespace policy | 375 } // namespace policy |
| OLD | NEW |