Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromiumApplication.java

Issue 687733006: Move getBrowserUserAgent() under ChromiumApplication (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/android/chromium_application.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/chromium_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698