Make --enable-low-end-device-mode apply in C++ on Android
Currently, Android supports --enable-low-end-device-mode, but requires that the flag be set/visible to Java. This limits the usefulness, as we can't apply this flag via C++ in test scenarios. This change modifies SysInfo::IsLowEndDevice to behave like SysInfo::AmountOfAvailablePhysicalMemory in its handling of flags: flags are checked / applied in platform-independent C++ before forwarding to a platform-specific impl function in the case that the default behavior was not overridden. Change-Id: Ic2952ed5d2eb199f4daaa60aa2f1eb6dad87d205 Reviewed-on: https://chromium-review.googlesource.com/959301Reviewed-by:danakj <danakj@chromium.org> Commit-Queue: Eric Karl <ericrk@chromium.org> Cr-Commit-Position: refs/heads/master@{#542823}
Showing
Please register or sign in to comment