Modify ApiCompat.setStatusBarColor to take window instead of activity
commit63e8bc5dba3377de1baa32c19c0cf3ae096c60bc
authorianwen <ianwen@chromium.org>
Fri, 8 May 2015 17:58:21 +0000 (8 10:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 8 May 2015 17:59:02 +0000 (8 17:59 +0000)
tree1aee92f4231080513af52ae3f15fe763e6469153
parentbac1d7de5e7bc83b2454a218768240d11636d600
Modify ApiCompat.setStatusBarColor to take window instead of activity

setStatusBarColor() is a method in Window, therefore ther is no reason
why our apicomat version of it takes an activity. Besides, in some
context (say a dialog) we cannot grap an activity.

BUG=485653

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

Cr-Commit-Position: refs/heads/master@{#328983}
base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java
chrome/android/java/src/org/chromium/chrome/browser/document/DocumentUtils.java