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

Unified Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc

Issue 15097004: Enable Autocomplete feature for chromium webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setSaveFormData2
Patch Set: rebased for IPC changes Created 7 years, 6 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/ui/autofill/tab_autofill_manager_delegate.cc
diff --git a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
index 9d385782ac58eb2f5ceb50e6ce6fdcbd96330ce9..61ddb5adcf93b562631fe3c928129fd0b928a8a5 100644
--- a/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
+++ b/chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc
@@ -20,6 +20,7 @@
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/chrome_pages.h"
#include "chrome/common/url_constants.h"
+#include "components/autofill/core/common/autofill_pref_names.h"
#include "content/public/browser/navigation_details.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents_view.h"
@@ -173,6 +174,11 @@ void TabAutofillManagerDelegate::UpdateProgressBar(double value) {
dialog_controller_->UpdateProgressBar(value);
}
+bool TabAutofillManagerDelegate::IsAutocompleteEnabled() {
+ // For browser, Autocomplete is always enabled as part of Autofill.
+ return GetPrefs()->GetBoolean(prefs::kAutofillEnabled);
+}
+
void TabAutofillManagerDelegate::HideRequestAutocompleteDialog() {
if (dialog_controller_.get())
dialog_controller_->Hide();

Powered by Google App Engine
This is Rietveld 408576698