Optimizing DateTimeAndroid and ColorChooserAndroid initializations.
Some of the functions are direct wrapper to WebContents methods. In this
patch, taken care of removing those dependencies and added extra validation to prevent run time crashes.
BUG=
398263
Committed:
https://crrev.com/9e47ab574004f9b9f32b3b9e9b7cc3cb0e59d0c7
Cr-Commit-Position: refs/heads/master@{#302146}