Android: Get rid of extra dup()s on launching child processes
[chromium-blink-merge.git] / chrome / installer / util / helper.h
blob940db447f6b2dfd62671537697a114e9ae353352
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
3 // found in the LICENSE file.
4 //
5 // This file contains helper functions used by setup.
7 #ifndef CHROME_INSTALLER_UTIL_HELPER_H_
8 #define CHROME_INSTALLER_UTIL_HELPER_H_
10 #include <string>
12 class BrowserDistribution;
14 namespace base {
15 class FilePath;
18 namespace installer {
20 // This function returns the install path for Chrome depending on whether its
21 // system wide install or user specific install.
22 // system_install: if true, the function returns system wide location
23 // (ProgramFiles\Google). Otherwise it returns user specific
24 // location (Document And Settings\<user>\Local Settings...)
25 base::FilePath GetChromeInstallPath(bool system_install,
26 BrowserDistribution* dist);
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);
33 // Returns the app guid under which the current process receives updates from
34 // Google Update.
35 std::wstring GetAppGuidForUpdates(bool system_install);
37 } // namespace installer
39 #endif // CHROME_INSTALLER_UTIL_HELPER_H_