Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #177 from brave/ext_honey
Browse files Browse the repository at this point in the history
Add support for Honey
  • Loading branch information
bbondy authored Apr 7, 2017
2 parents facf2d3 + 513eb8d commit edd3706
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions brave/browser/api/brave_api_component_updater.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ void ComponentUpdater::RegisterComponent(const std::string& component_id) {
} else if (component_id == kBitwardenId) {
RegisterComponentForUpdate(
kBitwardenPublicKeyStr, registered_callback, ready_callback);
} else if (component_id == kHoneyId) {
RegisterComponentForUpdate(
kHoneyPublicKeyStr, registered_callback, ready_callback);
} else if (component_id == kWidevineId) {
brave::RegisterWidevineCdmComponent(
g_browser_process->component_updater(),
Expand Down
29 changes: 29 additions & 0 deletions brave/browser/component_updater/default_extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -347,4 +347,33 @@ const std::string kBitwardenPublicKeyStr( // NOLINT
(const char *)kBitwardenPublicKey, sizeof(kBitwardenPublicKey));
const std::string kBitwardenId("nngceckbapebfimnlniiiahkandclblb"); // NOLINT

// Honey
// Download: https://clients2.google.com/service/update2/crx?response=redirect&prodversion=52.0.2743.116&x=id%3Dbmnlcjabgnpnenekpadlanbbkooimhnj%26uc // NOLINT
const uint8_t kHoneyPublicKey[162] = {
0x30, 0x81, 0x9f, 0x30, 0x0d, 0x06, 0x09, 0x2a,
0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01,
0x05, 0x00, 0x03, 0x81, 0x8d, 0x00, 0x30, 0x81,
0x89, 0x02, 0x81, 0x81, 0x00, 0xbb, 0xf6, 0x66,
0xb2, 0x2f, 0x2b, 0x82, 0x61, 0x8f, 0xdd, 0xc9,
0x3e, 0xd8, 0x72, 0xbd, 0x6c, 0x54, 0x1a, 0x7d,
0xc8, 0x7a, 0xd8, 0xe2, 0x69, 0xe8, 0x81, 0x51,
0x20, 0xbb, 0xeb, 0x03, 0x4f, 0xaf, 0xbf, 0x03,
0x5d, 0xb5, 0x35, 0xaf, 0x9a, 0x4f, 0x0e, 0xa6,
0x14, 0xb0, 0xfa, 0x2c, 0x78, 0x1b, 0x80, 0x7b,
0x78, 0x7e, 0x74, 0x36, 0x57, 0xf4, 0x30, 0x71,
0xf0, 0x52, 0x5d, 0x14, 0xd2, 0x90, 0x6a, 0x60,
0x36, 0xc6, 0x40, 0x8e, 0x76, 0x2c, 0xe3, 0xf5,
0xf3, 0x65, 0x06, 0x0a, 0x1a, 0x5b, 0x56, 0x4f,
0xdd, 0xc4, 0x3f, 0xdc, 0xd7, 0x37, 0x59, 0x06,
0x6e, 0xdc, 0xdf, 0x90, 0xf1, 0xb3, 0x4d, 0xa9,
0x2a, 0xb8, 0x27, 0xce, 0x8d, 0xb2, 0xad, 0x6c,
0x04, 0x0a, 0x5a, 0x1f, 0x29, 0xa7, 0x3a, 0x8b,
0x85, 0x67, 0x11, 0x52, 0x7f, 0x60, 0xfc, 0xf8,
0x54, 0xf7, 0xd1, 0x76, 0xf5, 0x02, 0x03, 0x01,
0x00, 0x01
};
const std::string kHoneyPublicKeyStr( // NOLINT
(const char *)kHoneyPublicKey, sizeof(kHoneyPublicKey));
const std::string kHoneyId("bmnlcjabgnpnenekpadlanbbkooimhnj"); // NOLINT

#endif // BRAVE_BROWSER_COMPONENT_UPDATER_DEFAULT_EXTENSIONS_H_

0 comments on commit edd3706

Please sign in to comment.