| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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; | 5 package org.chromium.chrome.browser; |
| 6 | 6 |
| 7 import org.chromium.base.CalledByNative; | 7 import org.chromium.base.CalledByNative; |
| 8 import org.chromium.content.app.ContentApplication; | 8 import org.chromium.content.app.ContentApplication; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 /** | 46 /** |
| 47 * @return Whether parental controls are enabled. Returning true will disab
le | 47 * @return Whether parental controls are enabled. Returning true will disab
le |
| 48 * incognito mode. | 48 * incognito mode. |
| 49 */ | 49 */ |
| 50 @CalledByNative | 50 @CalledByNative |
| 51 protected abstract boolean areParentalControlsEnabled(); | 51 protected abstract boolean areParentalControlsEnabled(); |
| 52 | 52 |
| 53 // TODO(yfriedman): This is too widely available. Plumb this through ChromeN
etworkDelegate | 53 // TODO(yfriedman): This is too widely available. Plumb this through ChromeN
etworkDelegate |
| 54 // instead. | 54 // instead. |
| 55 protected abstract PKCS11AuthenticationManager getPKCS11AuthenticationManage
r(); | 55 protected abstract PKCS11AuthenticationManager getPKCS11AuthenticationManage
r(); |
| 56 |
| 57 /** |
| 58 * @return The user agent string of Chrome. |
| 59 */ |
| 60 public static String getBrowserUserAgent() { |
| 61 return nativeGetBrowserUserAgent(); |
| 62 } |
| 63 |
| 64 private static native String nativeGetBrowserUserAgent(); |
| 56 } | 65 } |
| OLD | NEW |