use of org.chromium.chrome.browser.PasswordUIView in project AndroidChromium by JackyAndroid.
the class PasswordEntryEditor method removeItem.
// Delete was clicked.
private void removeItem() {
final PasswordUIView passwordUIView = new PasswordUIView();
final PasswordListObserver passwordDeleter = new PasswordListObserver() {
@Override
public void passwordListAvailable(int count) {
if (!mException) {
passwordUIView.removeSavedPasswordEntry(mID);
passwordUIView.destroy();
getActivity().finish();
}
}
@Override
public void passwordExceptionListAvailable(int count) {
if (mException) {
passwordUIView.removeSavedPasswordException(mID);
passwordUIView.destroy();
getActivity().finish();
}
}
};
passwordUIView.addObserver(passwordDeleter);
passwordUIView.updatePasswordLists();
}
Aggregations