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

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

Issue 896653007: "Chromium Autofill Settings" option should open autofill settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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 | no next file » | 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 android.os.Build;
8
7 import org.chromium.base.CalledByNative; 9 import org.chromium.base.CalledByNative;
8 import org.chromium.chrome.browser.preferences.LocationSettings; 10 import org.chromium.chrome.browser.preferences.LocationSettings;
11 import org.chromium.chrome.browser.preferences.PreferencesLauncher;
12 import org.chromium.chrome.browser.preferences.ProtectedContentPreferences;
13 import org.chromium.chrome.browser.preferences.autofill.AutofillPreferences;
14 import org.chromium.chrome.browser.preferences.password.ManageSavedPasswordsPref erences;
9 import org.chromium.content.app.ContentApplication; 15 import org.chromium.content.app.ContentApplication;
10 16
11 /** 17 /**
12 * Basic application functionality that should be shared among all browser appli cations that use 18 * Basic application functionality that should be shared among all browser appli cations that use
13 * chrome layer. 19 * chrome layer.
14 */ 20 */
15 public abstract class ChromiumApplication extends ContentApplication { 21 public abstract class ChromiumApplication extends ContentApplication {
16 22
17 /** 23 /**
18 * Returns the class name of the Settings activity. 24 * Returns the class name of the Settings activity.
19 */ 25 */
20 public abstract String getSettingsActivityName(); 26 public abstract String getSettingsActivityName();
21 27
22 /** 28 /**
23 * Opens a protected content settings page, if available. 29 * Opens a protected content settings page, if available.
24 */ 30 */
25 @CalledByNative 31 @CalledByNative
26 protected void openProtectedContentSettings() {} 32 protected void openProtectedContentSettings() {
33 assert Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
34 PreferencesLauncher.launchSettingsPage(this,
35 ProtectedContentPreferences.class.getName());
36 }
27 37
28 @CalledByNative 38 @CalledByNative
29 protected void showAutofillSettings() {} 39 protected void showAutofillSettings() {
40 PreferencesLauncher.launchSettingsPage(this,
41 AutofillPreferences.class.getName());
42 }
30 43
31 @CalledByNative 44 @CalledByNative
32 protected void showPasswordSettings() {} 45 protected void showPasswordSettings() {
46 PreferencesLauncher.launchSettingsPage(this,
47 ManageSavedPasswordsPreferences.class.getName());
48 }
33 49
34 /** 50 /**
35 * Returns an instance of LocationSettings to be installed as a singleton. 51 * Returns an instance of LocationSettings to be installed as a singleton.
36 */ 52 */
37 public LocationSettings createLocationSettings() { 53 public LocationSettings createLocationSettings() {
38 return new LocationSettings(this); 54 return new LocationSettings(this);
39 } 55 }
40 56
41 /** 57 /**
42 * Opens the UI to clear browsing data. 58 * Opens the UI to clear browsing data.
(...skipping 15 matching lines...) Expand all
58 74
59 /** 75 /**
60 * @return The user agent string of Chrome. 76 * @return The user agent string of Chrome.
61 */ 77 */
62 public static String getBrowserUserAgent() { 78 public static String getBrowserUserAgent() {
63 return nativeGetBrowserUserAgent(); 79 return nativeGetBrowserUserAgent();
64 } 80 }
65 81
66 private static native String nativeGetBrowserUserAgent(); 82 private static native String nativeGetBrowserUserAgent();
67 } 83 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698