Skip to content

Commit

Permalink
widevine: Fix ARM compile error due to unused variable (see issue chr…
Browse files Browse the repository at this point in the history
…omiumembedded#3149)

alloy_browser_main.cc:223:17: error: unused variable 'cus' [-Werror,-Wunused-variable]
    auto* const cus = g_browser_process->component_updater();
  • Loading branch information
magreenblatt committed Aug 10, 2021
1 parent 5a0b3ea commit 6a52098
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libcef/browser/alloy/alloy_browser_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -230,6 +232,7 @@ int AlloyBrowserMainParts::PreMainMessageLoopRun() {
RegisterWidevineCdmComponent(cus);
#endif
}
#endif

return content::RESULT_CODE_NORMAL_EXIT;
}
Expand Down

0 comments on commit 6a52098

Please sign in to comment.