Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This file defines a utility function to get the full path of a module. | |
| 6 | |
| 7 #ifndef CHROME_INSTALLER_UTIL_MODULE_UTIL_WIN_H_ | |
| 8 #define CHROME_INSTALLER_UTIL_MODULE_UTIL_WIN_H_ | |
| 9 | |
| 10 #include "base/files/file_path.h" | |
| 11 #include "base/strings/string16.h" | |
| 12 | |
| 13 namespace installer { | |
| 14 | |
| 15 // Returns the full path to a module named |module_name|, or an empty path if | |
|
grt (UTC plus 2)
2015/10/30 15:45:59
this comment isn't quite right. an empty path is r
fdoray
2015/10/30 17:22:15
Done.
| |
| 16 // the module is not found. The searched module must be in the same directory as | |
| 17 // the current executable, or in a version subdirectory. On output, if the | |
| 18 // module is in a version subdirectory, |version| is populated with the version | |
| 19 // of the module. | |
| 20 base::FilePath GetModulePath(const base::char16* module_name, | |
|
grt (UTC plus 2)
2015/10/30 15:45:59
nit: pass module_name by const-ref
grt (UTC plus 2)
2015/10/30 15:57:58
oops, that doesn't make sense (i read it as string
fdoray
2015/10/30 17:22:15
Done.
| |
| 21 base::string16* version); | |
| 22 | |
| 23 } // namespace installer | |
| 24 | |
| 25 #endif // CHROME_INSTALLER_UTIL_MODULE_UTIL_WIN_H_ | |
| OLD | NEW |