Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update userdata path for Win/macOS #59

Merged
merged 1 commit into from Mar 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions patches/chrome-common-chrome_paths_mac.mm.patch
@@ -1,16 +1,16 @@
diff --git a/chrome/common/chrome_paths_mac.mm b/chrome/common/chrome_paths_mac.mm
index cca3bbb41ae25484c3e87c9aba09a8b07741e2b2..f231ca44af970aed896f3c62e0a39fc6e61d0b72 100644
index cca3bbb41ae25484c3e87c9aba09a8b07741e2b2..adf92a55f199078ad500fa7baaacd862fae05aa2 100644
--- a/chrome/common/chrome_paths_mac.mm
+++ b/chrome/common/chrome_paths_mac.mm
@@ -58,8 +58,10 @@
if (!product_dir_name) {
#if defined(GOOGLE_CHROME_BUILD)
product_dir_name = "Google/Chrome";
+#elif defined(OFFICIAL_BUILD)
+ product_dir_name = "Brave";
+ product_dir_name = "Brave-Browser";
#else
- product_dir_name = "Chromium";
+ product_dir_name = "Brave-Development";
+ product_dir_name = "Brave-Browser-Development";
#endif
}

@@ -1,5 +1,5 @@
diff --git a/chrome/install_static/chromium_install_modes.cc b/chrome/install_static/chromium_install_modes.cc
index 1ba8cefa0770a66deaec2724a17f693755ab4e7c..d64dea20d575dd1738938b96fad596a5556a6ccd 100644
index 1ba8cefa0770a66deaec2724a17f693755ab4e7c..7aa3ece4f889471bf69ba85cb264f0d9562d27a7 100644
--- a/chrome/install_static/chromium_install_modes.cc
+++ b/chrome/install_static/chromium_install_modes.cc
@@ -14,7 +14,11 @@ namespace install_static {
Expand All @@ -8,9 +8,9 @@ index 1ba8cefa0770a66deaec2724a17f693755ab4e7c..d64dea20d575dd1738938b96fad596a5

-const wchar_t kProductPathName[] = L"Chromium";
+#if defined(OFFICIAL_BUILD)
+const wchar_t kProductPathName[] = L"Brave";
+const wchar_t kProductPathName[] = L"Brave-Browser";
+#else
+const wchar_t kProductPathName[] = L"Brave-Development";
+const wchar_t kProductPathName[] = L"Brave-Browser-Development";
+#endif

const size_t kProductPathNameLength = _countof(kProductPathName) - 1;
Expand Down