Skip to content

Commit

Permalink
Disable KitKat-specific APIs.
Browse files Browse the repository at this point in the history
BUG=348088
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257178 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
dmazzoni@chromium.org committed Mar 14, 2014
1 parent e72a780 commit 5fcc99e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,13 @@ public class BrowserAccessibilityManager {
@CalledByNative
private static BrowserAccessibilityManager create(long nativeBrowserAccessibilityManagerAndroid,
ContentViewCore contentViewCore) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
return new KitKatBrowserAccessibilityManager(
nativeBrowserAccessibilityManagerAndroid, contentViewCore);
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
// A bug in the KitKat framework prevents us from using these new APIs.
// http://crbug.com/348088/
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
// return new KitKatBrowserAccessibilityManager(
// nativeBrowserAccessibilityManagerAndroid, contentViewCore);

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
return new JellyBeanBrowserAccessibilityManager(
nativeBrowserAccessibilityManagerAndroid, contentViewCore);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
/**
* Subclass of BrowserAccessibilityManager for KitKat that creates an
* AccessibilityNodeProvider and delegates its implementation to this object.
*
* THIS CLASS IS NOT USED! A bug in the KitKat framework prevents us
* from using these new APIs. We can re-enable this class after the next
* Android system update. http://crbug.com/348088/
*/
@JNINamespace("content")
public class KitKatBrowserAccessibilityManager extends JellyBeanBrowserAccessibilityManager {
Expand Down

0 comments on commit 5fcc99e

Please sign in to comment.