|
5 | 5 | #include "brave/browser/api/brave_api_component_updater.h"
|
6 | 6 |
|
7 | 7 | #include "base/base64.h"
|
8 |
| -#include "brave/browser/component_updater/default_extensions.h" |
9 | 8 | #include "brave/browser/component_updater/extension_installer_traits.h"
|
10 | 9 | #include "brave/browser/component_updater/widevine_cdm_component_installer.h"
|
11 | 10 | #include "chrome/browser/browser_process_impl.h"
|
@@ -126,25 +125,7 @@ void ComponentUpdater::RegisterComponent(mate::Arguments* args) {
|
126 | 125 |
|
127 | 126 | std::string public_key_string;
|
128 | 127 |
|
129 |
| - if (component_id == kOnePasswordId) { |
130 |
| - base::Base64Encode(kOnePasswordPublicKeyStr, &public_key_string); |
131 |
| - } else if (component_id == kDashlaneId) { |
132 |
| - base::Base64Encode(kDashlanePublicKeyStr, &public_key_string); |
133 |
| - } else if (component_id == kLastPassId) { |
134 |
| - base::Base64Encode(kLastPassPublicKeyStr, &public_key_string); |
135 |
| - } else if (component_id == kPDFJSId) { |
136 |
| - base::Base64Encode(kPDFJSPublicKeyStr, &public_key_string); |
137 |
| - } else if (component_id == kPocketId) { |
138 |
| - base::Base64Encode(kPocketPublicKeyStr, &public_key_string); |
139 |
| - } else if (component_id == kVimiumId) { |
140 |
| - base::Base64Encode(kVimiumPublicKeyStr, &public_key_string); |
141 |
| - } else if (component_id == kEnpassId) { |
142 |
| - base::Base64Encode(kEnpassPublicKeyStr, &public_key_string); |
143 |
| - } else if (component_id == kBitwardenId) { |
144 |
| - base::Base64Encode(kBitwardenPublicKeyStr, &public_key_string); |
145 |
| - } else if (component_id == kHoneyId) { |
146 |
| - base::Base64Encode(kHoneyPublicKeyStr, &public_key_string); |
147 |
| - } else if (component_id == kWidevineId) { |
| 128 | + if (component_id == kWidevineId) { |
148 | 129 | brave::RegisterWidevineCdmComponent(
|
149 | 130 | g_browser_process->component_updater(),
|
150 | 131 | registered_callback, ready_callback);
|
|
0 commit comments