OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/device_local_account.h" | 5 #include "chrome/browser/chromeos/policy/device_local_account.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/chromeos/login/user_manager.h" | 15 #include "chrome/browser/chromeos/login/users/user_manager.h" |
16 #include "chrome/browser/chromeos/settings/cros_settings.h" | 16 #include "chrome/browser/chromeos/settings/cros_settings.h" |
17 #include "chromeos/settings/cros_settings_names.h" | 17 #include "chromeos/settings/cros_settings_names.h" |
18 #include "google_apis/gaia/gaia_auth_util.h" | 18 #include "google_apis/gaia/gaia_auth_util.h" |
19 | 19 |
20 namespace policy { | 20 namespace policy { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 const char kPublicAccountDomainPrefix[] = "public-accounts"; | 24 const char kPublicAccountDomainPrefix[] = "public-accounts"; |
25 const char kKioskAppAccountDomainPrefix[] = "kiosk-apps"; | 25 const char kKioskAppAccountDomainPrefix[] = "kiosk-apps"; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 continue; | 166 continue; |
167 } | 167 } |
168 | 168 |
169 accounts.push_back(DeviceLocalAccount( | 169 accounts.push_back(DeviceLocalAccount( |
170 static_cast<DeviceLocalAccount::Type>(type), account_id, kiosk_app_id)); | 170 static_cast<DeviceLocalAccount::Type>(type), account_id, kiosk_app_id)); |
171 } | 171 } |
172 return accounts; | 172 return accounts; |
173 } | 173 } |
174 | 174 |
175 } // namespace policy | 175 } // namespace policy |
OLD | NEW |