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

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

Issue 668343004: Make channel available in Java via ChromeVersionConstants.java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chris's comments 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
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 /**
11 * Basic application functionality that should be shared among all browser appli cations that use 11 * Basic application functionality that should be shared among all browser appli cations that use
12 * chrome layer. 12 * chrome layer.
13 */ 13 */
14 public abstract class ChromiumApplication extends ContentApplication { 14 public abstract class ChromiumApplication extends ContentApplication {
15 @Override
16 public void onCreate() {
17 super.onCreate();
18 ChromeVersionInfo.init(this);
19 }
20
21 /** 15 /**
22 * Opens a protected content settings page, if available. 16 * Opens a protected content settings page, if available.
23 */ 17 */
24 @CalledByNative 18 @CalledByNative
25 protected abstract void openProtectedContentSettings(); 19 protected abstract void openProtectedContentSettings();
26 20
27 @CalledByNative 21 @CalledByNative
28 protected abstract void showSyncSettings(); 22 protected abstract void showSyncSettings();
29 23
30 @CalledByNative 24 @CalledByNative
(...skipping 13 matching lines...) Expand all
44 * @return Whether parental controls are enabled. Returning true will disab le 38 * @return Whether parental controls are enabled. Returning true will disab le
45 * incognito mode. 39 * incognito mode.
46 */ 40 */
47 @CalledByNative 41 @CalledByNative
48 protected abstract boolean areParentalControlsEnabled(); 42 protected abstract boolean areParentalControlsEnabled();
49 43
50 // TODO(yfriedman): This is too widely available. Plumb this through ChromeN etworkDelegate 44 // TODO(yfriedman): This is too widely available. Plumb this through ChromeN etworkDelegate
51 // instead. 45 // instead.
52 protected abstract PKCS11AuthenticationManager getPKCS11AuthenticationManage r(); 46 protected abstract PKCS11AuthenticationManager getPKCS11AuthenticationManage r();
53 } 47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698