Skip to content

Commit

Permalink
Setting kExtensionsInstallVerification to enforce-strict for BravePDF…
Browse files Browse the repository at this point in the history
…DownloadTest.VerifyChromiumPDFExntension
  • Loading branch information
jumde committed May 24, 2019
1 parent afafa0b commit b6e88ef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/brave_command_line_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,10 @@ void BraveCommandLineHelper::AppendCSV(
}
command_line_.AppendSwitchASCII(switch_key, ss.str());
}

void BraveCommandLineHelper::AppendSwitchASCII(
const char* switch_key,
const char* value) {
if (!command_line_.HasSwitch(switch_key))
command_line_.AppendSwitchASCII(switch_key, value);
}
1 change: 1 addition & 0 deletions app/brave_command_line_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class BraveCommandLineHelper {
inline ~BraveCommandLineHelper() = default;

void AppendSwitch(const char* switch_key);
void AppendSwitchASCII(const char* switch_key, const char* value);
void AppendFeatures(const std::unordered_set<const char*>& enabled,
const std::unordered_set<const char*>& disabled);

Expand Down
2 changes: 2 additions & 0 deletions app/brave_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ bool BraveMainDelegate::BasicStartupComplete(int* exit_code) {
command_line.AppendSwitch(switches::kDisableDomainReliability);
command_line.AppendSwitch(switches::kDisableChromeGoogleURLTrackingClient);
command_line.AppendSwitch(switches::kNoPings);
command_line.AppendSwitchASCII(switches::kExtensionsInstallVerification,
switches::kExtensionContentVerificationEnforceStrict);

// Enabled features.
const std::unordered_set<const char*> enabled_features = {
Expand Down

0 comments on commit b6e88ef

Please sign in to comment.