diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 07:07:49 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 07:07:49 +0000 |
commit | 00f36bd395891e8ee134ca9f8a0c99b0f846aa85 (patch) | |
tree | ae8cb2bf4a22d64c2869fe28696104e66cccad25 /chrome/common/chrome_paths.cc | |
parent | 841803c39354971f380399cd2dfeacbc5e0e245c (diff) | |
download | chromium_src-00f36bd395891e8ee134ca9f8a0c99b0f846aa85.zip chromium_src-00f36bd395891e8ee134ca9f8a0c99b0f846aa85.tar.gz chromium_src-00f36bd395891e8ee134ca9f8a0c99b0f846aa85.tar.bz2 |
DevTools: On Mac, deploy inspector resources into <app_name>/Contents/Resources and read them from there.
Review URL: http://codereview.chromium.org/115587
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths.cc')
-rw-r--r-- | chrome/common/chrome_paths.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc index 1c307ed..d4f2f16 100644 --- a/chrome/common/chrome_paths.cc +++ b/chrome/common/chrome_paths.cc @@ -80,17 +80,17 @@ bool PathProvider(int key, FilePath* result) { if (!GetUserDesktop(&cur)) return false; break; - case chrome::DIR_RESOURCES: - if (!PathService::Get(chrome::DIR_APP, &cur)) - return false; - cur = cur.Append(FILE_PATH_LITERAL("resources")); - create_dir = true; - break; case chrome::DIR_INSPECTOR: if (!PathService::Get(chrome::DIR_APP, &cur)) return false; +#if defined(OS_MACOSX) + cur = cur.DirName(); + cur = cur.Append(FILE_PATH_LITERAL("Resources")); + cur = cur.Append(FILE_PATH_LITERAL("inspector")); +#else cur = cur.Append(FILE_PATH_LITERAL("resources")); cur = cur.Append(FILE_PATH_LITERAL("inspector")); +#endif break; case chrome::DIR_APP_DICTIONARIES: #if defined(OS_LINUX) |