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

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: 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 "Document And Settings\<user>\Local Settings.". Note that this is the
gab 2014/04/02 15:16:57 This is the XP path, the previous comment was more
grt (UTC plus 2) 2014/04/02 16:53:09 Done.
30 // application data folder (e.g., "AppData\Local or "Local Settings\Application 29 // default user data directory and does not take into account that it can be
31 // Data" in %USERPROFILE%). Note that these are the defaults and do not take 30 // overriden with a command line parameter.
32 // into account that they can be overriden with a command line parameter. 31 base::FilePath GetChromeUserDataPath(BrowserDistribution* dist);
33 // |paths| may be empty on return, but is guaranteed not to contain empty paths
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 32
39 // Returns the distribution corresponding to the current process's binaries. 33 // 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 34 // In the case of a multi-install product, this will be the CHROME_BINARIES
41 // distribution. 35 // distribution.
42 BrowserDistribution* GetBinariesDistribution(bool system_install); 36 BrowserDistribution* GetBinariesDistribution(bool system_install);
43 37
44 // Returns the app guid under which the current process receives updates from 38 // Returns the app guid under which the current process receives updates from
45 // Google Update. 39 // Google Update.
46 std::wstring GetAppGuidForUpdates(bool system_install); 40 std::wstring GetAppGuidForUpdates(bool system_install);
47 41
48 } // namespace installer 42 } // namespace installer
49 43
50 #endif // CHROME_INSTALLER_UTIL_HELPER_H_ 44 #endif // CHROME_INSTALLER_UTIL_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698