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

View File

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