summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_paths_win.cc
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 00:25:34 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 00:25:34 +0000
commitfd1e44cd31fc8c90d39479a5fe4bae6019a989b3 (patch)
treec615848c4a19eabd5b30918b4c233796136ef986 /chrome/common/chrome_paths_win.cc
parent7a28f1690831eeb3c33d259a7bad9e676ce41ed7 (diff)
downloadchromium_src-fd1e44cd31fc8c90d39479a5fe4bae6019a989b3.zip
chromium_src-fd1e44cd31fc8c90d39479a5fe4bae6019a989b3.tar.gz
chromium_src-fd1e44cd31fc8c90d39479a5fe4bae6019a989b3.tar.bz2
Remove the Chrome Frame preprocessor define in chrome_constants.cc and deal with resulting fallout.
Also, remove several instances of Chrome Frame using wstrings instead of FilePaths. The main goal of this patch is to move towards ensuring that Chrome Frame and Google Chrome share binary-identical exes and dlls except for setup.exe and mini_installer.exe. Review URL: http://codereview.chromium.org/338025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30290 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths_win.cc')
-rw-r--r--chrome/common/chrome_paths_win.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/common/chrome_paths_win.cc b/chrome/common/chrome_paths_win.cc
index 257d5bb..5a860b9 100644
--- a/chrome/common/chrome_paths_win.cc
+++ b/chrome/common/chrome_paths_win.cc
@@ -25,6 +25,17 @@ bool GetDefaultUserDataDirectory(FilePath* result) {
return true;
}
+bool GetChromeFrameUserDataDirectory(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(L"Chrome Frame");
+ *result = result->Append(chrome::kUserDataDirname);
+ return true;
+}
+
bool GetUserDocumentsDirectory(FilePath* result) {
wchar_t path_buf[MAX_PATH];
if (FAILED(SHGetFolderPath(NULL, CSIDL_MYDOCUMENTS, NULL,