-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2567 from brave/pr2558_fix_shortcut_macos_0.67.x
Make shortcut work on MacOS (uplift to 0.67.x)
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
17 changes: 13 additions & 4 deletions
17
patches/chrome-common-mac-app_mode_chrome_locator.mm.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
diff --git a/chrome/common/mac/app_mode_chrome_locator.mm b/chrome/common/mac/app_mode_chrome_locator.mm | ||
index efd272e706ba56b748e4b76b96d76cbd03aa07ac..b5d8d8cfa223d276db7a328036deeef658bc0320 100644 | ||
index efd272e706ba56b748e4b76b96d76cbd03aa07ac..ead12da6a0fc7381d8e6e43ec5e68e40c0105683 100644 | ||
--- a/chrome/common/mac/app_mode_chrome_locator.mm | ||
+++ b/chrome/common/mac/app_mode_chrome_locator.mm | ||
@@ -79,7 +79,7 @@ bool GetChromeBundleInfo(const base::FilePath& chrome_bundle, | ||
@@ -79,9 +79,17 @@ bool GetChromeBundleInfo(const base::FilePath& chrome_bundle, | ||
// However, we want the shims to be agnostic to distribution and operate based | ||
// on the data in their plist, so encode the framework names here. | ||
NSDictionary* framework_for_exe = @{ | ||
- @"Chromium": @"Chromium", | ||
+ @"Brave": @"Brave", | ||
+#if defined(BRAVE_CHROMIUM_BUILD) | ||
+ @"Brave Browser": @"Brave Browser", | ||
+ @"Brave Browser Beta": @"Brave Browser Beta", | ||
+ @"Brave Browser Dev": @"Brave Browser Dev", | ||
+ @"Brave Browser Nightly": @"Brave Browser Nightly", | ||
+ @"Brave Browser Development": @"Brave Browser Development", | ||
+#else | ||
@"Chromium": @"Chromium", | ||
@"Google Chrome": @"Google Chrome", | ||
@"Google Chrome Canary": @"Google Chrome", | ||
+#endif | ||
}; | ||
NSString* framework_name = [framework_for_exe objectForKey:cr_bundle_exe]; | ||
NSString* cr_framework_shlib_path = |