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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/password_manager/Credential.java

Issue 1007403003: [Smart Lock] Display identity provider information in account chooser infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/password_manager/Credential.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/password_manager/Credential.java b/chrome/android/java/src/org/chromium/chrome/browser/password_manager/Credential.java
index d694f0ce9e1917386d64def0657dabdd13eee7af..823a6c47893fc0f09ccd7df7a6b14f0f8c691c1e 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/password_manager/Credential.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/password_manager/Credential.java
@@ -13,6 +13,7 @@ import org.chromium.base.CalledByNative;
public class Credential {
private final String mUsername;
private final String mDisplayName;
+ private final String mFederation;
private final int mType;
private final int mIndex;
@@ -21,13 +22,15 @@ public class Credential {
* The value is PasswordForm::username_value.
* @param displayName user friendly name to show in the UI. It can be empty.
* The value is PasswordForm::display_name.
+ * @param federation Identity provider name for this credential (empty for local credentials).
* @param type type which should be either local or federated. The value corresponds to a
* C++ enum CredentialType.
* @param index position in array of credentials.
*/
- public Credential(String username, String displayName, int type, int index) {
+ public Credential(String username, String displayName, String federation, int type, int index) {
mUsername = username;
mDisplayName = displayName;
+ mFederation = federation;
mType = type;
mIndex = index;
}
@@ -40,6 +43,10 @@ public class Credential {
return mDisplayName;
}
+ public String getFederation() {
+ return mFederation;
+ }
+
public int getIndex() {
return mIndex;
}
@@ -50,8 +57,8 @@ public class Credential {
@CalledByNative
private static Credential createCredential(
- String username, String displayName, int type, int index) {
- return new Credential(username, displayName, type, index);
+ String username, String displayName, String federation, int type, int index) {
+ return new Credential(username, displayName, federation, type, index);
}
@CalledByNative

Powered by Google App Engine
This is Rietveld 408576698