// found in the LICENSE file.
#include "chrome/common/chrome_constants.h"
-#include "chrome/common/chrome_version.h"
+
+#define FPL FILE_PATH_LITERAL
namespace chrome {
+#if defined(OS_MACOSX)
+const base::FilePath::CharType kFrameworkName[] =
+ FPL(ATOM_PRODUCT_NAME " Framework.framework");
+#endif // OS_MACOSX
+
// filenames
const base::FilePath::CharType kCacheDirname[] = FPL("Cache");
const base::FilePath::CharType kChannelIDFilename[] = FPL("Origin Bound Certs");
namespace chrome {
+#if defined(OS_MACOSX)
+// NOTE: if you change the value of kFrameworkName, please don't forget to
+// update components/test/run_all_unittests.cc as well.
+// TODO(tfarina): Remove the comment above, when you fix components to use plist
+// on Mac.
+extern const base::FilePath::CharType kFrameworkName[];
+#endif // OS_MACOSX
+
// filenames
extern const base::FilePath::CharType kCacheDirname[];
extern const base::FilePath::CharType kChannelIDFilename[];
// .app's versioned directory. Go up two steps to get to the browser
// .app's versioned directory.
path = path.DirName().DirName();
- DCHECK_EQ(path.BaseName().value(), kChromeVersion);
} else {
// Go into the versioned directory.
- path = path.Append("Versions").Append(kChromeVersion);
+ path = path.Append("Frameworks");
}
return path;