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

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

Issue 2619323003: Remove uses of BrowserDistribution::CHROME_BINARIES in installer_util. (Closed)
Patch Set: Created 3 years, 11 months 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
OLDNEW
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 // This file contains helper functions used by setup. 5 // This file contains helper functions used by setup.
6 6
7 #ifndef CHROME_INSTALLER_UTIL_HELPER_H_ 7 #ifndef CHROME_INSTALLER_UTIL_HELPER_H_
8 #define CHROME_INSTALLER_UTIL_HELPER_H_ 8 #define CHROME_INSTALLER_UTIL_HELPER_H_
9 9
10 #include <string>
11
12 class BrowserDistribution; 10 class BrowserDistribution;
13 11
14 namespace base { 12 namespace base {
15 class FilePath; 13 class FilePath;
huangs 2017/01/09 21:27:08 FilePath is returned by value below, so should rep
grt (UTC plus 2) 2017/01/10 08:43:56 Yes, indeed!
16 } 14 }
17 15
18 namespace installer { 16 namespace installer {
19 17
20 // This function returns the install path for Chrome depending on whether its 18 // This function returns the install path for Chrome depending on whether its
21 // system wide install or user specific install. 19 // system wide install or user specific install.
22 // system_install: if true, the function returns system wide location 20 // system_install: if true, the function returns system wide location
23 // (ProgramFiles\Google). Otherwise it returns user specific 21 // (ProgramFiles\Google). Otherwise it returns user specific
24 // location (Document And Settings\<user>\Local Settings...) 22 // location (Document And Settings\<user>\Local Settings...)
25 base::FilePath GetChromeInstallPath(bool system_install, 23 base::FilePath GetChromeInstallPath(bool system_install,
26 BrowserDistribution* dist); 24 BrowserDistribution* dist);
27 25
28 // Returns the distribution corresponding to the current process's binaries.
29 // In the case of a multi-install product, this will be the CHROME_BINARIES
30 // distribution.
31 BrowserDistribution* GetBinariesDistribution(bool system_install);
32
33 // Returns the app guid under which the current process receives updates from
34 // Google Update.
35 std::wstring GetAppGuidForUpdates(bool system_install);
36
37 } // namespace installer 26 } // namespace installer
38 27
39 #endif // CHROME_INSTALLER_UTIL_HELPER_H_ 28 #endif // CHROME_INSTALLER_UTIL_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698