| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.util; | 5 package org.chromium.chrome.browser.util; |
| 6 | 6 |
| 7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.content.Intent; | 10 import android.content.Intent; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 } | 114 } |
| 115 | 115 |
| 116 /** | 116 /** |
| 117 * Records the current document mode state with native-side feature utilitie
s. | 117 * Records the current document mode state with native-side feature utilitie
s. |
| 118 * @param enabled Whether the document mode is enabled. | 118 * @param enabled Whether the document mode is enabled. |
| 119 */ | 119 */ |
| 120 public static void setDocumentModeEnabled(boolean enabled) { | 120 public static void setDocumentModeEnabled(boolean enabled) { |
| 121 nativeSetDocumentModeEnabled(enabled); | 121 nativeSetDocumentModeEnabled(enabled); |
| 122 } | 122 } |
| 123 | 123 |
| 124 public static boolean isApplicationUpdateSupported() { | |
| 125 return true; | |
| 126 } | |
| 127 | |
| 128 private static native void nativeSetDocumentModeEnabled(boolean enabled); | 124 private static native void nativeSetDocumentModeEnabled(boolean enabled); |
| 129 } | 125 } |
| OLD | NEW |