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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/infobar/SavePasswordInfoBar.java

Issue 641753002: Remove Password Authentication code that is no longer used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/infobar/SavePasswordInfoBar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/SavePasswordInfoBar.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/SavePasswordInfoBar.java
deleted file mode 100644
index 058427011b5969a6853107c4f312be363c19c33b..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/SavePasswordInfoBar.java
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2014 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.infobar;
-
-import android.widget.CheckBox;
-
-import org.chromium.chrome.browser.password_manager.PasswordAuthenticationManager;
-
-/**
- * The infobar that allows saving passwords for autofill.
- */
-public class SavePasswordInfoBar extends ConfirmInfoBar {
-
- private final SavePasswordInfoBarDelegate mDelegate;
- private final long mNativeInfoBar;
- private CheckBox mUseAdditionalAuthenticationCheckbox;
-
- public SavePasswordInfoBar(long nativeInfoBar, SavePasswordInfoBarDelegate delegate,
- int iconDrawableId, String message, String primaryButtonText,
- String secondaryButtonText) {
- super(nativeInfoBar, null, iconDrawableId, message,
- null, primaryButtonText, secondaryButtonText);
- mNativeInfoBar = nativeInfoBar;
- mDelegate = delegate;
- }
-
- @Override
- public void createContent(InfoBarLayout layout) {
- if (PasswordAuthenticationManager.isPasswordAuthenticationEnabled()) {
- mUseAdditionalAuthenticationCheckbox = new CheckBox(getContext());
- mUseAdditionalAuthenticationCheckbox.setText(
- PasswordAuthenticationManager.getPasswordProtectionString());
- layout.setCustomContent(mUseAdditionalAuthenticationCheckbox);
- }
-
- super.createContent(layout);
- }
-
- @Override
- public void onButtonClicked(boolean isPrimaryButton) {
- if (isPrimaryButton && mUseAdditionalAuthenticationCheckbox != null
- && mUseAdditionalAuthenticationCheckbox.isChecked()) {
- mDelegate.setUseAdditionalAuthentication(mNativeInfoBar, true);
- }
- super.onButtonClicked(isPrimaryButton);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698