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/extensions/api/autotest_private/autotest_private_api.h" | 5 #include "chrome/browser/extensions/api/autotest_private/autotest_private_api.h" |
6 | 6 |
7 #include "chrome/browser/extensions/api/autotest_private/autotest_private_api_fa ctory.h" | 7 #include "chrome/browser/extensions/api/autotest_private/autotest_private_api_fa ctory.h" |
8 #include "chrome/browser/extensions/extension_function_registry.h" | 8 #include "chrome/browser/extensions/extension_function_registry.h" |
9 #include "chrome/browser/lifetime/application_lifetime.h" | 9 #include "chrome/browser/lifetime/application_lifetime.h" |
10 #include "chrome/common/extensions/api/autotest_private.h" | 10 #include "chrome/common/extensions/api/autotest_private.h" |
(...skipping 19 matching lines...) Expand all Loading... | |
30 case ash::user::LOGGED_IN_USER: | 30 case ash::user::LOGGED_IN_USER: |
31 return std::string("user"); | 31 return std::string("user"); |
32 case ash::user::LOGGED_IN_OWNER: | 32 case ash::user::LOGGED_IN_OWNER: |
33 return std::string("owner"); | 33 return std::string("owner"); |
34 case ash::user::LOGGED_IN_GUEST: | 34 case ash::user::LOGGED_IN_GUEST: |
35 return std::string("guest"); | 35 return std::string("guest"); |
36 case ash::user::LOGGED_IN_RETAIL_MODE: | 36 case ash::user::LOGGED_IN_RETAIL_MODE: |
37 return std::string("retail"); | 37 return std::string("retail"); |
38 case ash::user::LOGGED_IN_PUBLIC: | 38 case ash::user::LOGGED_IN_PUBLIC: |
39 return std::string("public"); | 39 return std::string("public"); |
40 case ash::user::LOGGED_IN_LOCALLY_MANAGED: | |
bartfab (slow)
2013/04/05 13:16:33
Locally managed users are still in flux. Please le
stevenjb
2013/04/05 18:17:15
Done.
| |
41 return std::string("local"); | |
42 case ash::user::LOGGED_IN_KIOSK_APP: | 40 case ash::user::LOGGED_IN_KIOSK_APP: |
43 return std::string("kiosk"); | 41 return std::string("kiosk"); |
44 case ash::user::LOGGED_IN_NONE: | 42 case ash::user::LOGGED_IN_NONE: |
45 return std::string("none"); | 43 return std::string("none"); |
46 // Intentionally leaves out default so that compiler catches missing | 44 // Intentionally leaves out default so that compiler catches missing |
47 // branches when new login status is added. | 45 // branches when new login status is added. |
48 } | 46 } |
49 | 47 |
50 NOTREACHED(); | 48 NOTREACHED(); |
51 #endif | 49 #endif |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 return true; | 92 return true; |
95 } | 93 } |
96 | 94 |
97 AutotestPrivateAPI::AutotestPrivateAPI() : test_mode_(false) { | 95 AutotestPrivateAPI::AutotestPrivateAPI() : test_mode_(false) { |
98 } | 96 } |
99 | 97 |
100 AutotestPrivateAPI::~AutotestPrivateAPI() { | 98 AutotestPrivateAPI::~AutotestPrivateAPI() { |
101 } | 99 } |
102 | 100 |
103 } // namespace extensions | 101 } // namespace extensions |
OLD | NEW |