Commit 8ef38ad6 authored by Armando Miraglia's avatar Armando Miraglia Committed by Commit Bot

[getUserMedia] Consolidate Fitness and SelectBestSettings in a single function.

While Fitness returns a single double value, the SelectBestSettings
returns the best settings for a specific property. Independently of the
difference in return type, the logic to determine fitness and
best settings is the same.

This change-list aims at consolidating the two functions to reduce code
and logic duplication in the getUserMedia code.

BUG=731170
TESTED=./out/Default/content_unittests

Change-Id: I91e84a8b9b41cd8b7dff9d08790695ae85670278
Reviewed-on: https://chromium-review.googlesource.com/c/1311918
Commit-Queue: Armando Miraglia <armax@chromium.org>
Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604898}
parent d2dd2a04
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment