Adding a utility method to WindowAndroid.

Adding a utility method to WindowAndroid to check whether an intent
can be resolved.

BUG=None
TEST=None

Review URL: https://codereview.chromium.org/77183002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236673 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 236673
Restricts the source of ProfileDestroyObserver to the profile.

BUG=322190
R=xiyuan@chromium.org
TEST=none

Review URL: https://codereview.chromium.org/78303007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236674 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 236674