diff options
author | huanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-19 20:26:38 +0000 |
---|---|---|
committer | huanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-19 20:26:38 +0000 |
commit | fc9023fa5d45af40509a20263142ad7191620e00 (patch) | |
tree | 57e7cda3d2a78b68eba260a4d98f221e4c151c79 /chrome/common/chrome_paths_win.cc | |
parent | 7541206c7a5160f3489d563b97f1c841c853dc22 (diff) | |
download | chromium_src-fc9023fa5d45af40509a20263142ad7191620e00.zip chromium_src-fc9023fa5d45af40509a20263142ad7191620e00.tar.gz chromium_src-fc9023fa5d45af40509a20263142ad7191620e00.tar.bz2 |
Fixing Default User Data Directory for SxS install.
TEST=SxS install can run together with normal install.
BUG=35574
Review URL: http://codereview.chromium.org/639002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths_win.cc')
-rw-r--r-- | chrome/common/chrome_paths_win.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/common/chrome_paths_win.cc b/chrome/common/chrome_paths_win.cc index 40ef825..4d7709d 100644 --- a/chrome/common/chrome_paths_win.cc +++ b/chrome/common/chrome_paths_win.cc @@ -15,16 +15,15 @@ #include "base/path_service.h" #include "base/scoped_comptr_win.h" #include "chrome/common/chrome_constants.h" +#include "chrome/installer/util/browser_distribution.h" namespace chrome { bool GetDefaultUserDataDirectory(FilePath* result) { if (!PathService::Get(base::DIR_LOCAL_APP_DATA, result)) return false; -#if defined(GOOGLE_CHROME_BUILD) - *result = result->Append(FILE_PATH_LITERAL("Google")); -#endif - *result = result->Append(chrome::kBrowserAppName); + BrowserDistribution* dist = BrowserDistribution::GetDistribution(); + *result = result->Append(dist->GetInstallSubDir()); *result = result->Append(chrome::kUserDataDirname); return true; } |