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 "base/base_paths_win.h" | 5 #include "base/base_paths_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shlobj.h> | 8 #include <shlobj.h> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 cur = FilePath(system_buffer); | 112 cur = FilePath(system_buffer); |
113 break; | 113 break; |
114 case base::DIR_SOURCE_ROOT: { | 114 case base::DIR_SOURCE_ROOT: { |
115 FilePath executableDir; | 115 FilePath executableDir; |
116 // On Windows, unit tests execute two levels deep from the source root. | 116 // On Windows, unit tests execute two levels deep from the source root. |
117 // For example: chrome/{Debug|Release}/ui_tests.exe | 117 // For example: chrome/{Debug|Release}/ui_tests.exe |
118 PathService::Get(base::DIR_EXE, &executableDir); | 118 PathService::Get(base::DIR_EXE, &executableDir); |
119 cur = executableDir.DirName().DirName(); | 119 cur = executableDir.DirName().DirName(); |
120 break; | 120 break; |
121 } | 121 } |
| 122 case base::DIR_MEDIA_LIBS: { |
| 123 if (!PathService::Get(base::DIR_MODULE, result)) |
| 124 return false; |
| 125 return true; |
| 126 } |
122 default: | 127 default: |
123 return false; | 128 return false; |
124 } | 129 } |
125 | 130 |
126 *result = cur; | 131 *result = cur; |
127 return true; | 132 return true; |
128 } | 133 } |
129 | 134 |
130 } // namespace base | 135 } // namespace base |
OLD | NEW |