OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <pwd.h> | 5 #include <pwd.h> |
| 6 #include <sys/types.h> |
| 7 #include <unistd.h> |
6 | 8 |
7 #include "chrome/browser/policy/policy_path_parser.h" | 9 #include "chrome/browser/policy/policy_path_parser.h" |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 | 12 |
11 namespace policy { | 13 namespace policy { |
12 | 14 |
13 namespace path_parser { | 15 namespace path_parser { |
14 | 16 |
15 const char* kMachineNamePolicyVarName = "${machine_name}"; | 17 const char* kMachineNamePolicyVarName = "${machine_name}"; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 } else { | 49 } else { |
48 LOG(ERROR) << "Machine name variable can not be resolved."; | 50 LOG(ERROR) << "Machine name variable can not be resolved."; |
49 } | 51 } |
50 } | 52 } |
51 return result; | 53 return result; |
52 } | 54 } |
53 | 55 |
54 } // namespace path_parser | 56 } // namespace path_parser |
55 | 57 |
56 } // namespace policy | 58 } // namespace policy |
OLD | NEW |