Commit 0e3bcf1a authored by divya.bansal's avatar divya.bansal Committed by Commit bot

"Chromium Autofill Settings" option should open autofill settings page.

Added code to open autofill settings page.

If "Chromium Autofill Settings" option" is selected from autofill menu
autofill forms settings page should be opened.

Please enter the commit message for your changes. Lines starting

BUG=454779

Review URL: https://codereview.chromium.org/896653007

Cr-Commit-Position: refs/heads/master@{#314716}
parent 5dba0c6a
......@@ -4,8 +4,14 @@
package org.chromium.chrome.browser;
import android.os.Build;
import org.chromium.base.CalledByNative;
import org.chromium.chrome.browser.preferences.LocationSettings;
import org.chromium.chrome.browser.preferences.PreferencesLauncher;
import org.chromium.chrome.browser.preferences.ProtectedContentPreferences;
import org.chromium.chrome.browser.preferences.autofill.AutofillPreferences;
import org.chromium.chrome.browser.preferences.password.ManageSavedPasswordsPreferences;
import org.chromium.content.app.ContentApplication;
/**
......@@ -23,13 +29,23 @@ public abstract class ChromiumApplication extends ContentApplication {
* Opens a protected content settings page, if available.
*/
@CalledByNative
protected void openProtectedContentSettings() {}
protected void openProtectedContentSettings() {
assert Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
PreferencesLauncher.launchSettingsPage(this,
ProtectedContentPreferences.class.getName());
}
@CalledByNative
protected void showAutofillSettings() {}
protected void showAutofillSettings() {
PreferencesLauncher.launchSettingsPage(this,
AutofillPreferences.class.getName());
}
@CalledByNative
protected void showPasswordSettings() {}
protected void showPasswordSettings() {
PreferencesLauncher.launchSettingsPage(this,
ManageSavedPasswordsPreferences.class.getName());
}
/**
* Returns an instance of LocationSettings to be installed as a singleton.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment