diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-22 22:45:27 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-22 22:45:27 +0000 |
commit | 80ec0b7efa735bb00886d8a9baa14030c2591862 (patch) | |
tree | 0621af0fba2445ae65b40a2ae984a024c47256f5 /content/shell | |
parent | e1aff17cad662fb0dd246ac72252e0572d6e6c72 (diff) | |
download | chromium_src-80ec0b7efa735bb00886d8a9baa14030c2591862.zip chromium_src-80ec0b7efa735bb00886d8a9baa14030c2591862.tar.gz chromium_src-80ec0b7efa735bb00886d8a9baa14030c2591862.tar.bz2 |
Mac content shell: Set up browser context path properly.
BUG=115784
TEST=none
Review URL: http://codereview.chromium.org/9838021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r-- | content/shell/shell_browser_context.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/shell/shell_browser_context.cc b/content/shell/shell_browser_context.cc index c8bb4e3..4cd7dae 100644 --- a/content/shell/shell_browser_context.cc +++ b/content/shell/shell_browser_context.cc @@ -23,6 +23,8 @@ #include "base/base_paths_win.h" #elif defined(OS_LINUX) #include "base/nix/xdg_util.h" +#elif defined(OS_MACOSX) +#include "base/base_paths_mac.h" #endif using content::BrowserThread; @@ -107,6 +109,9 @@ FilePath ShellBrowserContext::GetPath() { kXdgConfigHomeEnvVar, kDotConfigDir)); path_ = config_dir.Append("content_shell"); +#elif defined(OS_MACOSX) + CHECK(PathService::Get(base::DIR_APP_DATA, &path_)); + path_ = path_.Append("Chromium Content Shell"); #else NOTIMPLEMENTED(); #endif |