Skip to content

Commit

Permalink
Enable Certificate Error Assistant component (fixes brave/brave-brows…
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarier committed Jan 5, 2021
1 parent a3b1032 commit f9cd224
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* Copyright (c) 2020 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at https://mozilla.org/MPL/2.0/. */

#define RegisterSSLErrorAssistantComponent \
RegisterSSLErrorAssistantComponent_ChromiumImpl
#include "../../../../../chrome/browser/component_updater/ssl_error_assistant_component_installer.cc" // NOLINT
#undef RegisterSSLErrorAssistantComponent

#include "chrome/browser/component_updater/component_updater_utils.h"
#include "components/component_updater/component_updater_service.h"

namespace component_updater {

const char kSSLErrorAssistantComponentId[] = "giekcmmlnklenlaomppkphknjmnnpneh";

void OnSSLErrorAssistantRegistered() {
component_updater::BraveOnDemandUpdate(kSSLErrorAssistantComponentId);
}

void RegisterSSLErrorAssistantComponent(ComponentUpdateService* cus) {
auto installer = base::MakeRefCounted<ComponentInstaller>(
std::make_unique<SSLErrorAssistantComponentInstallerPolicy>());
installer->Register(cus, base::Bind(&OnSSLErrorAssistantRegistered));
}

} // namespace component_updater
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ void ComponentInstaller::Register(ComponentUpdateService* cus,
"eeigpngbgcognadeebkilcpcaedhellh", // Autofill States Data
"gcmjkmgdlgnkkcocmoeiminaijmmjnii", // Subresource Filter Rules
"ggkkehgbnfjpeggfpleeakpidbkibbmn", // Crowd Deny
"giekcmmlnklenlaomppkphknjmnnpneh", // Certificate Error Assistant
"jflookgnkcckhobaglndicnbbgbonegd", // Safety Tips
"llkgjffcdpffmhiakmfcdcblohccpfmo", // Origin Trials
"ojhpjlocmbogdgmfpkhlaaeamibhnphh", // Zxcvbn Data Dictionaries
Expand Down

0 comments on commit f9cd224

Please sign in to comment.