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 <pwd.h> | 5 #include <pwd.h> |
6 #include <sys/types.h> | 6 #include <sys/types.h> |
7 #include <unistd.h> | 7 #include <unistd.h> |
8 | 8 |
9 #include "chrome/browser/policy/policy_path_parser.h" | 9 #include "chrome/browser/policy/policy_path_parser.h" |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 char machinename[255]; | 46 char machinename[255]; |
47 if (gethostname(machinename, 255) == 0) { | 47 if (gethostname(machinename, 255) == 0) { |
48 result.replace(position, strlen(kMachineNamePolicyVarName), machinename); | 48 result.replace(position, strlen(kMachineNamePolicyVarName), machinename); |
49 } else { | 49 } else { |
50 LOG(ERROR) << "Machine name variable can not be resolved."; | 50 LOG(ERROR) << "Machine name variable can not be resolved."; |
51 } | 51 } |
52 } | 52 } |
53 return result; | 53 return result; |
54 } | 54 } |
55 | 55 |
| 56 void CheckUserDataDirPolicy(base::FilePath* user_data_dir) { |
| 57 // This function is not implemented in Linux because we don't support the |
| 58 // policy on this platform. |
| 59 NOTREACHED(); |
| 60 } |
| 61 |
56 } // namespace path_parser | 62 } // namespace path_parser |
57 | 63 |
58 } // namespace policy | 64 } // namespace policy |
OLD | NEW |