Commit dd839814 authored by Natalie Chouinard's avatar Natalie Chouinard Committed by Commit Bot

Delete dead file: PasswordEntryEditorPreference

There are no usages of this class.

Change-Id: Id08ac22340c5f9d76c0885aeae549288b8ca7230
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1705108Reviewed-by: default avatarFriedrich [CET] <fhorschig@chromium.org>
Commit-Queue: Natalie Chouinard <chouinard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#678323}
parent a851128c
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.preferences.password;
import android.app.Activity;
import android.os.Bundle;
import android.preference.Preference;
import org.chromium.base.Callback;
import org.chromium.chrome.browser.widget.prefeditor.EditorDialog;
import org.chromium.chrome.browser.widget.prefeditor.PasswordEditor;
/**
* Launches the UI to create a credential.
*/
public class PasswordEntryEditorPreference extends Preference {
final private Activity mActivity;
private EditorDialog mEditorDialog;
private Bundle mExtras;
public PasswordEntryEditorPreference(Activity activity) {
super(activity);
mActivity = activity;
}
/** @return The common editor user interface. */
public EditorDialog getEditorDialog() {
return mEditorDialog;
}
@Override
protected void onClick() {
mExtras = getExtras();
preparePasswordEditor();
}
private void preparePasswordEditor() {
mEditorDialog = new EditorDialog(mActivity, null /* observer */, null /* runnable */);
PasswordEditor passwordEditor = new PasswordEditor();
passwordEditor.setEditorDialog(mEditorDialog);
passwordEditor.edit(null /* toEdit */, new Callback<SavedPasswordEntry>() {
@Override
public void onResult(SavedPasswordEntry credential) {
PasswordManagerHandlerProvider.getInstance()
.getPasswordManagerHandler()
.updatePasswordLists();
}
});
}
}
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