summaryrefslogtreecommitdiffstats
path: root/content/shell
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-22 22:45:27 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-22 22:45:27 +0000
commit80ec0b7efa735bb00886d8a9baa14030c2591862 (patch)
tree0621af0fba2445ae65b40a2ae984a024c47256f5 /content/shell
parente1aff17cad662fb0dd246ac72252e0572d6e6c72 (diff)
downloadchromium_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.cc5
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