This commit enables autofill and fixes build errors related to it.
This also fixes all the remaining crashes related to autofill post
webview launch. Autofill was disabled for all profiles during M126
bringup.
Change-Id: I4ef8f47a5fd7ccfd07f534638aaf42fa838612a4
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
}
void PasswordStore::GetLogins(const PasswordFormDigest& form,
- base::WeakPtr<PasswordStoreConsumer> consumer) {
+ base::WeakPtr<PasswordStoreConsumer> consumer
+#if defined(TIZEN_AUTOFILL_FW)
+ ,
+ bool skip_checking_autofill,
+ void* view
+#endif
+) {
DCHECK(main_task_runner_->RunsTasksInCurrentSequence());
if (!backend_) {
return; // Once the shutdown started, ignore new requests.
const PasswordFormDigest& form_digest,
base::OnceClosure completion = base::NullCallback()) override;
void GetLogins(const PasswordFormDigest& form,
- base::WeakPtr<PasswordStoreConsumer> consumer) override;
+ base::WeakPtr<PasswordStoreConsumer> consumer
+#if defined(TIZEN_AUTOFILL_FW)
+ ,
+ bool skip_checking_autofill = false,
+ void* view = nullptr
+#endif
+ ) override;
void GetAutofillableLogins(
base::WeakPtr<PasswordStoreConsumer> consumer) override;
void GetAllLogins(base::WeakPtr<PasswordStoreConsumer> consumer) override;
// completion.
// TODO(crbug.com/40185049): Use a smart pointer for consumer.
virtual void GetLogins(const PasswordFormDigest& form,
- base::WeakPtr<PasswordStoreConsumer> consumer) = 0;
+ base::WeakPtr<PasswordStoreConsumer> consumer
+#if defined(TIZEN_AUTOFILL_FW)
+ ,
+ bool skip_checking_autofill = false,
+ void* view = nullptr
+#endif
+ ) = 0;
// Gets the complete list of non-blocklist PasswordForms.`consumer` will be
// notified on completion.
drm_mapi_aarch_64 = false
}
-if (!use_efl && !build_chrome) {
+if (use_efl && !build_chrome) {
tizen_autofill = true
if (tizen_product_tv) {
tizen_autofill_fw = true
#include "components/autofill/content/browser/content_autofill_driver.h"
#include "components/autofill/content/browser/content_autofill_driver_factory.h"
#include "components/autofill/core/browser/autofill_client.h"
+#include "components/autofill/core/browser/browser_autofill_manager.h"
#include "components/autofill/core/common/autofill_prefs.h"
#include "components/prefs/pref_service.h"
#include "components/user_prefs/user_prefs.h"
std::unique_ptr<AutofillManager> AutofillClientEfl::CreateManager(
base::PassKey<ContentAutofillDriver> pass_key,
ContentAutofillDriver& driver) {
- NOTIMPLEMENTED();
- return nullptr;
+ return std::make_unique<BrowserAutofillManager>(
+ &driver, EWebView::GetPlatformLocale());
}
payments::PaymentsAutofillClient*
#include "base/path_service.h"
#include "base/task/thread_pool.h"
#include "components/autofill/core/browser/geo/autofill_country.h"
+#include "components/autofill/core/browser/webdata/autocomplete/autocomplete_table.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/webdata/common/webdata_constants.h"
#include "content/common/paths_efl.h"
// All tables objects that participate in managing the database must
// be added here.
-#if !defined(EWK_BRINGUP) // FIXME: m126 bringup
- web_database_->AddTable(base::WrapUnique(new autofill::AutofillTable));
-#endif
+ web_database_->AddTable(std::make_unique<autofill::AutocompleteTable>());
web_database_->LoadDatabase();
autofill_web_data_ =