widevine: Fix ARM compile error due to unused variable (see issue #3149)

alloy_browser_main.cc:223:17: error: unused variable 'cus' [-Werror,-Wunused-variable]
    auto* const cus = g_browser_process->component_updater();
This commit is contained in:
Marshall Greenblatt 2021-08-10 12:05:10 -04:00
parent 240b869db5
commit 17d2d13030
1 changed files with 3 additions and 0 deletions

View File

@ -217,6 +217,8 @@ int AlloyBrowserMainParts::PreMainMessageLoopRun() {
scheme::RegisterWebUIControllerFactory();
#if BUILDFLAG(ENABLE_MEDIA_FOUNDATION_WIDEVINE_CDM) || \
BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT)
const base::CommandLine* command_line =
base::CommandLine::ForCurrentProcess();
if (!command_line->HasSwitch(switches::kDisableComponentUpdate)) {
@ -230,6 +232,7 @@ int AlloyBrowserMainParts::PreMainMessageLoopRun() {
RegisterWidevineCdmComponent(cus);
#endif
}
#endif
return content::RESULT_CODE_NORMAL_EXIT;
}