-
Notifications
You must be signed in to change notification settings - Fork 870
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only enable sparkle by default for official builds on mac (#2705)
* only enable sparkle by default for official builds on mac fix brave/brave-browser#4908
- Loading branch information
Showing
12 changed files
with
114 additions
and
104 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#include "brave/browser/sparkle_buildflags.h" | ||
|
||
#if BUILDFLAG(ENABLE_SPARKLE) | ||
#include "brave/browser/mac/sparkle_glue.h" | ||
#endif | ||
|
||
#define KeystoneEnabled KeystoneEnabled_ChromiumImpl | ||
#define CurrentlyInstalledVersion CurrentlyInstalledVersion_ChromiumImpl | ||
#include "../../../../../chrome/browser/mac/keystone_glue.mm" // NOLINT | ||
#undef KeystoneEnabled | ||
#undef CurrentlyInstalledVersion | ||
|
||
namespace keystone_glue { | ||
|
||
bool KeystoneEnabled() { | ||
#if BUILDFLAG(ENABLE_SPARKLE) | ||
return sparkle_glue::SparkleEnabled(); | ||
#else | ||
return false; | ||
#endif | ||
} | ||
|
||
base::string16 CurrentlyInstalledVersion() { | ||
#if BUILDFLAG(ENABLE_SPARKLE) | ||
return sparkle_glue::CurrentlyInstalledVersion(); | ||
#else | ||
return base::string16(); | ||
#endif | ||
} | ||
|
||
} // namespace keystone_glue |
Oops, something went wrong.