Commit 7f3a4077 authored by grt@chromium.org's avatar grt@chromium.org

Remove unused function GetChromeFrameUserDataDirectory.

BUG=316496

Review URL: https://codereview.chromium.org/128783003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244162 0039d316-1c4b-4281-b951-d872f2087c98
parent 698ce16c
...@@ -27,11 +27,6 @@ namespace chrome { ...@@ -27,11 +27,6 @@ namespace chrome {
// DIR_USER_DATA has been overridden by a command-line option. // DIR_USER_DATA has been overridden by a command-line option.
bool GetDefaultUserDataDirectory(base::FilePath* result); bool GetDefaultUserDataDirectory(base::FilePath* result);
// This returns the base directory in which Chrome Frame stores user profiles.
// Note that this cannot be wrapped in a preprocessor define since
// CF and Google Chrome want to share the same binaries.
bool GetChromeFrameUserDataDirectory(base::FilePath* result);
// Get the path to the user's cache directory. This is normally the // Get the path to the user's cache directory. This is normally the
// same as the profile directory, but on Linux it can also be // same as the profile directory, but on Linux it can also be
// $XDG_CACHE_HOME and on Mac it can be under ~/Library/Caches. // $XDG_CACHE_HOME and on Mac it can be under ~/Library/Caches.
......
...@@ -97,19 +97,6 @@ void GetUserCacheDirectory(const base::FilePath& profile_dir, ...@@ -97,19 +97,6 @@ void GetUserCacheDirectory(const base::FilePath& profile_dir,
*result = cache_dir; *result = cache_dir;
} }
bool GetChromeFrameUserDataDirectory(base::FilePath* result) {
scoped_ptr<base::Environment> env(base::Environment::Create());
base::FilePath config_dir(GetXDGDirectory(env.get(),
kXdgConfigHomeEnvVar,
kDotConfigDir));
#if defined(GOOGLE_CHROME_BUILD)
*result = config_dir.Append("google-chrome-frame");
#else
*result = config_dir.Append("chrome-frame");
#endif
return true;
}
bool GetUserDocumentsDirectory(base::FilePath* result) { bool GetUserDocumentsDirectory(base::FilePath* result) {
*result = GetXDGUserDirectory("DOCUMENTS", "Documents"); *result = GetXDGUserDirectory("DOCUMENTS", "Documents");
return true; return true;
......
...@@ -51,16 +51,6 @@ bool GetDefaultUserDataDirectory(base::FilePath* result) { ...@@ -51,16 +51,6 @@ bool GetDefaultUserDataDirectory(base::FilePath* result) {
return true; return true;
} }
bool GetChromeFrameUserDataDirectory(base::FilePath* result) {
if (!PathService::Get(base::DIR_LOCAL_APP_DATA, result))
return false;
BrowserDistribution* dist = BrowserDistribution::GetSpecificDistribution(
BrowserDistribution::CHROME_FRAME);
*result = result->Append(dist->GetInstallSubDir());
*result = result->Append(chrome::kUserDataDirname);
return true;
}
void GetUserCacheDirectory(const base::FilePath& profile_dir, void GetUserCacheDirectory(const base::FilePath& profile_dir,
base::FilePath* result) { base::FilePath* result) {
// This function does more complicated things on Mac/Linux. // This function does more complicated things on Mac/Linux.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment