| 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 <shlobj.h> | 5 #include <shlobj.h> |
| 6 | 6 |
| 7 #include "chrome/browser/policy/policy_path_parser.h" | 7 #include "chrome/browser/policy/policy_path_parser.h" |
| 8 | 8 |
| 9 #include "base/logging.h" | |
| 10 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 11 | 10 |
| 12 namespace policy { | 11 namespace policy { |
| 13 | 12 |
| 14 namespace path_parser { | 13 namespace path_parser { |
| 15 | 14 |
| 16 const WCHAR* kMachineNamePolicyVarName = L"${machine_name}"; | 15 const WCHAR* kMachineNamePolicyVarName = L"${machine_name}"; |
| 17 const WCHAR* kUserNamePolicyVarName = L"${user_name}"; | 16 const WCHAR* kUserNamePolicyVarName = L"${user_name}"; |
| 18 const WCHAR* kWinDocumentsFolderVarName = L"${documents}"; | 17 const WCHAR* kWinDocumentsFolderVarName = L"${documents}"; |
| 19 const WCHAR* kWinLocalAppDataFolderVarName = L"${local_app_data}"; | 18 const WCHAR* kWinLocalAppDataFolderVarName = L"${local_app_data}"; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 result.replace( | 86 result.replace( |
| 88 position, wcslen(kMachineNamePolicyVarName), machinename_string); | 87 position, wcslen(kMachineNamePolicyVarName), machinename_string); |
| 89 } | 88 } |
| 90 } | 89 } |
| 91 return result; | 90 return result; |
| 92 } | 91 } |
| 93 | 92 |
| 94 } // namespace path_parser | 93 } // namespace path_parser |
| 95 | 94 |
| 96 } // namespace policy | 95 } // namespace policy |
| OLD | NEW |