[sensors] Remove source sensors fetching from the PlatformSensorFusion class
This patch moves source sensors fetching logic to the newly created private PlatformSensorFusion::Factory class. 1) PlatformSensorFusion stops exposing a constructor which does not initialize it fully. 2) PlatformSensorFusion does not need to check it state internally as source sensors are initialized at construction time. Rationals: Change-Id: I24416e770d60c1d7f0c8ac2cc8cc1758038bca49 Reviewed-on: https://chromium-review.googlesource.com/760420 Commit-Queue: Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> Reviewed-by:Reilly Grant <reillyg@chromium.org> Reviewed-by:
Jun Cai <juncai@chromium.org> Cr-Commit-Position: refs/heads/master@{#515508}
Showing
Please register or sign in to comment