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

Commit

Permalink
Register Pinterest component + key
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlawler committed Jun 8, 2017
1 parent 710685d commit f369755
Show file tree
Hide file tree
Showing 2 changed files with 34 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 @@ -142,6 +142,9 @@ void ComponentUpdater::RegisterComponent(const std::string& component_id) {
} else if (component_id == kHoneyId) {
RegisterComponentForUpdate(
kHoneyPublicKeyStr, registered_callback, ready_callback);
} else if (component_id == kPinterestId) {
RegisterComponentForUpdate(
kPinterestPublicKeyStr, registered_callback, ready_callback);
} else if (component_id == kWidevineId) {
brave::RegisterWidevineCdmComponent(
g_browser_process->component_updater(),
Expand Down
31 changes: 31 additions & 0 deletions brave/browser/component_updater/default_extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,39 @@ const uint8_t kHoneyPublicKey[162] = {
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

// Pinterest
// Download: https://clients2.google.com/service/update2/crx?response=redirect&prodversion=52.0.2743.116&x=id%3Dgpdjojdkbbmdfjfahjcgigfpmkopogic%26uc // NOLINT
const uint8_t kPinterestPublicKey[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, 0xc1, 0xf7, 0x9a,
0xb6, 0x87, 0x2b, 0x78, 0xf5, 0x90, 0xee, 0x56,
0x76, 0x08, 0xf7, 0x55, 0xda, 0x66, 0x1a, 0x90,
0x91, 0xb5, 0xee, 0xd1, 0x7d, 0xdf, 0xce, 0x83,
0x71, 0x3f, 0x18, 0x45, 0x6d, 0xfa, 0x86, 0x2b,
0x0b, 0x6d, 0xb3, 0xdd, 0x0b, 0x27, 0xb9, 0x43,
0xe4, 0x30, 0x88, 0x7e, 0x70, 0x60, 0xf1, 0x61,
0x85, 0x86, 0x9d, 0xde, 0x5b, 0x81, 0xb1, 0x3a,
0x09, 0x40, 0x2a, 0xb9, 0xe4, 0xb2, 0x62, 0x68,
0xc8, 0x00, 0xf9, 0x3e, 0x74, 0x80, 0xb9, 0xfc,
0x7c, 0x7c, 0x3d, 0xed, 0xad, 0x9b, 0xe8, 0xfd,
0x90, 0x2a, 0x17, 0x1d, 0x71, 0xe5, 0x79, 0xb7,
0x46, 0x6d, 0xf8, 0x12, 0x0b, 0xd5, 0x5d, 0xda,
0xda, 0x96, 0x01, 0xd2, 0x62, 0x2a, 0x9c, 0x11,
0x4f, 0xc5, 0x5f, 0x79, 0x18, 0x9c, 0xb2, 0xe1,
0xaf, 0x64, 0xd2, 0xe2, 0x57, 0x2b, 0xb2, 0x7d,
0x4a, 0x65, 0xdf, 0xe5, 0x71, 0x02, 0x03, 0x01,
0x00, 0x01
};

const std::string kPinterestPublicKeyStr( // NOLINT
(const char *)kPinterestPublicKey, sizeof(kPinterestPublicKey));
const std::string kPinterestId("gpdjojdkbbmdfjfahjcgigfpmkopogic"); // NOLINT

#endif // BRAVE_BROWSER_COMPONENT_UPDATER_DEFAULT_EXTENSIONS_H_

0 comments on commit f369755

Please sign in to comment.