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 <unistd.h> | |
Mattias Nissler (ping if slow)
2012/05/30 08:02:25
I guess this one is for geteuid? While you're at i
Han
2012/05/30 16:09:27
Yeah, right, both the headers are required for get
| |
6 | 7 |
7 #include "chrome/browser/policy/policy_path_parser.h" | 8 #include "chrome/browser/policy/policy_path_parser.h" |
8 | 9 |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 | 11 |
11 namespace policy { | 12 namespace policy { |
12 | 13 |
13 namespace path_parser { | 14 namespace path_parser { |
14 | 15 |
15 const char* kMachineNamePolicyVarName = "${machine_name}"; | 16 const char* kMachineNamePolicyVarName = "${machine_name}"; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
47 } else { | 48 } else { |
48 LOG(ERROR) << "Machine name variable can not be resolved."; | 49 LOG(ERROR) << "Machine name variable can not be resolved."; |
49 } | 50 } |
50 } | 51 } |
51 return result; | 52 return result; |
52 } | 53 } |
53 | 54 |
54 } // namespace path_parser | 55 } // namespace path_parser |
55 | 56 |
56 } // namespace policy | 57 } // namespace policy |
OLD | NEW |