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

Commit

Permalink
Add support for Pocket in component updater
Browse files Browse the repository at this point in the history
We need to refactor this so it is not a manual add into electron eventually but just continuing this way for now until we refactor it

Auditors: @bridiver
  • Loading branch information
bbondy committed Oct 29, 2016
1 parent cb87dd3 commit c5772a0
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 @@ -122,6 +122,9 @@ void ComponentUpdater::RegisterComponent(const std::string& component_id) {
} else if (component_id == kPDFJSId) {
RegisterComponentForUpdate(
kPDFJSPublicKeyStr, registered_callback, ready_callback);
} else if (component_id == kPocketId) {
RegisterComponentForUpdate(
kPocketPublicKeyStr, registered_callback, ready_callback);
} else if (component_id == kWidevineId) {
brave::RegisterWidevineCdmComponent(
g_browser_process->google_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 @@ -199,4 +199,33 @@ const std::string kWidevinePublicKeyStr(
(const char *)kWidevinePublicKey, sizeof(kWidevinePublicKey));
const std::string kWidevineId("oimompecagnajdejgnnjijobebaeigek");

// Pocket
// Download: https://clients2.google.com/service/update2/crx?response=redirect&prodversion=52.0.2743.116&x=id%3Dniloccemoadcdkdjlinkgdfekeahmflj%26uc // NOLINT
const uint8_t kPocketPublicKey[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, 0xca, 0x09, 0x0c,
0x01, 0x8a, 0xc2, 0xb5, 0x51, 0xcc, 0x58, 0x32,
0x7e, 0x8c, 0x01, 0xf0, 0xdb, 0x73, 0xcc, 0x97,
0x5b, 0x3b, 0xdb, 0x9c, 0x2c, 0xea, 0x27, 0x08,
0xf0, 0x6d, 0xe3, 0x1a, 0x00, 0x78, 0xe2, 0xf7,
0x58, 0xdd, 0x0b, 0x2d, 0xdb, 0x13, 0x33, 0x29,
0xad, 0x36, 0x71, 0x5b, 0xfd, 0x40, 0x9d, 0xf9,
0x3d, 0x07, 0x83, 0xfe, 0x85, 0xca, 0x13, 0xc2,
0xa5, 0x1a, 0x31, 0x40, 0x78, 0x59, 0xe9, 0x90,
0x31, 0x12, 0x91, 0xb2, 0xbf, 0x6f, 0x0b, 0x8e,
0x55, 0xd6, 0x2b, 0xfd, 0xd7, 0x69, 0xea, 0xc8,
0x69, 0x28, 0x19, 0x3f, 0x9c, 0x44, 0xa6, 0x5c,
0xfa, 0x78, 0x81, 0xae, 0x20, 0x27, 0x9f, 0x82,
0x76, 0x18, 0x10, 0x02, 0x1c, 0x9a, 0xa4, 0x90,
0x28, 0x92, 0x0a, 0x1a, 0x61, 0x0c, 0x5b, 0x7f,
0x50, 0xda, 0x10, 0x10, 0xac, 0xf8, 0x56, 0x8a,
0x96, 0x64, 0x35, 0x63, 0xfd, 0x02, 0x03, 0x01,
0x00, 0x01
};
const std::string kPocketPublicKeyStr(
(const char *)kPocketPublicKey, sizeof(kPocketPublicKey));
const std::string kPocketId("niloccemoadcdkdjlinkgdfekeahmflj");

#endif // BRAVE_BROWSER_COMPONENT_UPDATER_DEFAULT_EXTENSIONS_H_

1 comment on commit c5772a0

@bbondy
Copy link
Member Author

@bbondy bbondy commented on c5772a0 Oct 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.