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

Unified Diff: chrome/browser/password_manager/chrome_password_manager_client.cc

Issue 2619603002: Remove android_java_ui as it is not used (Closed)
Patch Set: Created 3 years, 11 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/browser/password_manager/chrome_password_manager_client.cc
diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b/chrome/browser/password_manager/chrome_password_manager_client.cc
index b58bec683aa34fa45328eedddd0695b6f2b75ebd..49dbee41dce6b91aea1ca0978ca4d25e5c5a4545 100644
--- a/chrome/browser/password_manager/chrome_password_manager_client.cc
+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
@@ -59,7 +59,7 @@
#include "net/base/url_util.h"
#include "third_party/re2/src/re2/re2.h"
-#if BUILDFLAG(ANDROID_JAVA_UI)
+#if defined(OS_ANDROID)
#include "chrome/browser/android/tab_android.h"
#include "chrome/browser/password_manager/account_chooser_dialog_android.h"
#include "chrome/browser/password_manager/auto_signin_first_run_dialog_android.h"
@@ -237,7 +237,7 @@ bool ChromePasswordManagerClient::PromptUserToSaveOrUpdatePassword(
return false;
}
-#if !BUILDFLAG(ANDROID_JAVA_UI)
+#if !defined(OS_ANDROID)
PasswordsClientUIDelegate* manage_passwords_ui_controller =
PasswordsClientUIDelegateFromWebContents(web_contents());
if (update_password) {
@@ -258,7 +258,7 @@ bool ChromePasswordManagerClient::PromptUserToSaveOrUpdatePassword(
}
SavePasswordInfoBarDelegate::Create(web_contents(),
std::move(form_to_save));
-#endif // !BUILDFLAG(ANDROID_JAVA_UI)
+#endif // !defined(OS_ANDROID)
return true;
}
@@ -317,7 +317,7 @@ void ChromePasswordManagerClient::NotifyUserAutoSignin(
// If a site gets back a credential some navigations are likely to occur. They
// shouldn't trigger the autofill password manager.
password_manager_.DropFormManagers();
-#if BUILDFLAG(ANDROID_JAVA_UI)
+#if defined(OS_ANDROID)
ShowAutoSigninPrompt(web_contents(), local_forms[0]->username_value);
#else
PasswordsClientUIDelegateFromWebContents(web_contents())
@@ -351,7 +351,7 @@ void ChromePasswordManagerClient::NotifyStorePasswordCalled() {
void ChromePasswordManagerClient::AutomaticPasswordSave(
std::unique_ptr<password_manager::PasswordFormManager> saved_form) {
-#if BUILDFLAG(ANDROID_JAVA_UI)
+#if defined(OS_ANDROID)
GeneratedPasswordSavedInfoBarDelegateAndroid::Create(web_contents());
#else
PasswordsClientUIDelegate* manage_passwords_ui_controller =
@@ -365,7 +365,7 @@ void ChromePasswordManagerClient::PasswordWasAutofilled(
const std::map<base::string16, const autofill::PasswordForm*>& best_matches,
const GURL& origin,
const std::vector<const autofill::PasswordForm*>* federated_matches) const {
-#if !BUILDFLAG(ANDROID_JAVA_UI)
+#if !defined(OS_ANDROID)
PasswordsClientUIDelegate* manage_passwords_ui_controller =
PasswordsClientUIDelegateFromWebContents(web_contents());
manage_passwords_ui_controller->OnPasswordAutofilled(best_matches, origin,
@@ -544,7 +544,7 @@ void ChromePasswordManagerClient::PromptUserToEnableAutosigninIfNecessary() {
IsOffTheRecord())
return;
-#if BUILDFLAG(ANDROID_JAVA_UI)
+#if defined(OS_ANDROID)
// Dialog is deleted by the Java counterpart after user interacts with it.
AutoSigninFirstRunDialogAndroid* auto_signin_first_run_dialog =
new AutoSigninFirstRunDialogAndroid(web_contents());

Powered by Google App Engine
This is Rietveld 408576698