| 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 #include "base/strings/string_piece.h" |
| 13 |
| 14 namespace installer { |
| 15 |
| 16 // Returns the full path to |module_name|. Both dev builds (where |module_name| |
| 17 // is in the current executable's directory) and proper installs (where |
| 18 // |module_name| is in a versioned sub-directory of the current executable's |
| 19 // directory) are suported. In the latter case, |version| is populated with the |
| 20 // name of the versioned sub-directory (i.e., the current executable's |
| 21 // version). Returns an empty path if the current executable appears to reside |
| 22 // in a proper install but version information is missing. The identified file |
| 23 // is not guaranteed to exist. |
| 24 base::FilePath GetModulePath(base::StringPiece16 module_name, |
| 25 base::string16* version); |
| 26 |
| 27 } // namespace installer |
| 28 |
| 29 #endif // CHROME_INSTALLER_UTIL_MODULE_UTIL_WIN_H_ |
| OLD | NEW |