Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: chrome/installer/util/module_util_win.h

Issue 1402353011: Expose a function to get the path to a DLL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: grt comment #15 (fix a comment) Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/installer/util/BUILD.gn ('k') | chrome/installer/util/module_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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(const base::StringPiece16& module_name,
grt (UTC plus 2) 2015/11/02 15:33:39 nit: Prefer passing StringPieces by value (from ba
fdoray 2015/11/02 17:36:25 Done.
25 base::string16* version);
26
27 } // namespace installer
28
29 #endif // CHROME_INSTALLER_UTIL_MODULE_UTIL_WIN_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/BUILD.gn ('k') | chrome/installer/util/module_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698