Add visibility check to [ActivityStatus]
Some Java code checks to see whether Chrome is in the foreground when
it should really be checking if the Application's top Activity is
visible for scenarios where a little popup partially covers Chrome.
Add a method to make the check more explicit, then change obvious places
that do checks on whether Chrome is running to use the new function.
Precursor to https://gerrit-int.chromium.org/#/c/45073/
BUG=308211
R=nyquist@chromium.org, tedchoc@chromium.org, yfriedman@chromium.org
Review URL: https://codereview.chromium.org/
27509007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229172 0039d316-1c4b-4281-b951-d872f2087c98