From: Karol Furmaniak Date: Thu, 12 Feb 2015 12:34:21 +0000 (+0100) Subject: Do not show sugestions when Remember form data is disabled. X-Git-Tag: submit/tizen/20201118.160233~1264 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=795617a24d11fd531a990a3c5434c6228d272541;p=platform%2Fframework%2Fweb%2Fchromium-efl.git Do not show sugestions when Remember form data is disabled. [Problem]: When Remember form data is disabled, popup list with sugestions appears. [Solution]: Check if Remember form data is enabled before showin popup list with sugestions. Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=11271 Reviewed by: DONGJUN KiM, Piotr Grad Change-Id: I699766a9601d651013ab7badd73fe12e371cf988 Signed-off-by: Karol Furmaniak --- diff --git a/tizen_src/impl/browser/autofill/autofill_manager_delegate_efl.cc b/tizen_src/impl/browser/autofill/autofill_manager_delegate_efl.cc index f8407a0..60ed8c8 100644 --- a/tizen_src/impl/browser/autofill/autofill_manager_delegate_efl.cc +++ b/tizen_src/impl/browser/autofill/autofill_manager_delegate_efl.cc @@ -102,6 +102,9 @@ void AutofillManagerDelegateEfl::ShowAutofillPopup( const std::vector& identifiers, base::WeakPtr delegate) { DCHECK(web_contents_); + // Do not show sugestions when Remember form data is disabled + if (!IsAutocompleteSavingEnabled()) + return; #if defined(OS_TIZEN) gfx::Rect client_area = web_contents_->GetContainerBounds(); gfx::RectF element_bounds_in_screen_space = element_bounds +