OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/installer/util/helper.h" | 5 #include "chrome/installer/util/helper.h" |
6 | 6 |
| 7 #include "base/file_path.h" |
7 #include "base/path_service.h" | 8 #include "base/path_service.h" |
8 #include "chrome/installer/util/browser_distribution.h" | 9 #include "chrome/installer/util/browser_distribution.h" |
9 | 10 |
10 namespace { | 11 namespace { |
11 | 12 |
12 FilePath GetChromeInstallBasePath(bool system, | 13 FilePath GetChromeInstallBasePath(bool system, |
13 BrowserDistribution* distribution, | 14 BrowserDistribution* distribution, |
14 const wchar_t* sub_path) { | 15 const wchar_t* sub_path) { |
15 FilePath install_path; | 16 FilePath install_path; |
16 if (system) { | 17 if (system) { |
(...skipping 15 matching lines...) Expand all Loading... |
32 FilePath installer::GetChromeInstallPath(bool system_install, | 33 FilePath installer::GetChromeInstallPath(bool system_install, |
33 BrowserDistribution* dist) { | 34 BrowserDistribution* dist) { |
34 return GetChromeInstallBasePath(system_install, dist, | 35 return GetChromeInstallBasePath(system_install, dist, |
35 installer_util::kInstallBinaryDir); | 36 installer_util::kInstallBinaryDir); |
36 } | 37 } |
37 | 38 |
38 FilePath installer::GetChromeUserDataPath(BrowserDistribution* dist) { | 39 FilePath installer::GetChromeUserDataPath(BrowserDistribution* dist) { |
39 return GetChromeInstallBasePath(false, dist, | 40 return GetChromeInstallBasePath(false, dist, |
40 installer_util::kInstallUserDataDir); | 41 installer_util::kInstallUserDataDir); |
41 } | 42 } |
OLD | NEW |