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

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

Issue 218683013: Remove stale code to delete the metro user data dir. It never shipped. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gab comments Created 6 years, 8 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 | Annotate | Revision Log
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> 10 #include <string>
11 #include <vector>
12 11
13 class BrowserDistribution; 12 class BrowserDistribution;
14 13
15 namespace base { 14 namespace base {
16 class FilePath; 15 class FilePath;
17 } 16 }
18 17
19 namespace installer { 18 namespace installer {
20 19
21 // This function returns the install path for Chrome depending on whether its 20 // This function returns the install path for Chrome depending on whether its
22 // system wide install or user specific install. 21 // system wide install or user specific install.
23 // system_install: if true, the function returns system wide location 22 // system_install: if true, the function returns system wide location
24 // (ProgramFiles\Google). Otherwise it returns user specific 23 // (ProgramFiles\Google). Otherwise it returns user specific
25 // location (Document And Settings\<user>\Local Settings...) 24 // location (Document And Settings\<user>\Local Settings...)
26 base::FilePath GetChromeInstallPath(bool system_install, BrowserDistribution* di st); 25 base::FilePath GetChromeInstallPath(bool system_install, BrowserDistribution* di st);
27 26
28 // Returns the path(s) to the directory that holds the user data (primary and, 27 // Returns the path to the directory that holds the user data. This is always
29 // if applicable to |dist|, alternate). This is always inside a user's local 28 // inside a user's local application data folder (e.g., "AppData\Local" or
30 // application data folder (e.g., "AppData\Local or "Local Settings\Application 29 // "Local Settings\Application Data" in %USERPROFILE%). Note that this is the
31 // Data" in %USERPROFILE%). Note that these are the defaults and do not take 30 // default user data directory and does not take into account that it can be
32 // into account that they can be overriden with a command line parameter. 31 // overriden with a command line parameter.
33 // |paths| may be empty on return, but is guaranteed not to contain empty paths 32 base::FilePath GetChromeUserDataPath(BrowserDistribution* dist);
34 // otherwise. If more than one path is returned, they are guaranteed to be
35 // siblings.
36 void GetChromeUserDataPaths(BrowserDistribution* dist,
37 std::vector<base::FilePath>* paths);
38 33
39 // Returns the distribution corresponding to the current process's binaries. 34 // Returns the distribution corresponding to the current process's binaries.
40 // In the case of a multi-install product, this will be the CHROME_BINARIES 35 // In the case of a multi-install product, this will be the CHROME_BINARIES
41 // distribution. 36 // distribution.
42 BrowserDistribution* GetBinariesDistribution(bool system_install); 37 BrowserDistribution* GetBinariesDistribution(bool system_install);
43 38
44 // Returns the app guid under which the current process receives updates from 39 // Returns the app guid under which the current process receives updates from
45 // Google Update. 40 // Google Update.
46 std::wstring GetAppGuidForUpdates(bool system_install); 41 std::wstring GetAppGuidForUpdates(bool system_install);
47 42
48 } // namespace installer 43 } // namespace installer
49 44
50 #endif // CHROME_INSTALLER_UTIL_HELPER_H_ 45 #endif // CHROME_INSTALLER_UTIL_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698