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

Issue 377423002: Make ChromeAutofillClient a ZoomObserver. (Closed)

Created:
6 years, 5 months ago by wjmaclean
Modified:
6 years, 5 months ago
CC:
chromium-reviews, benquan, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Make ChromeAutofillClient a ZoomObserver. In r273854 we may have removed an indirect pathway used to close open autofill popups when the associated web_contents undergoes a zoom change. This CL replaces that by directly registering the ChromeAutofillClient as a ZoomObserver, allowing it to directly react to zoom events. BUG=392412 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282453

Patch Set 1 #

Total comments: 2

Patch Set 2 : Simplify ChromeAutofillClient dependance on ZoomController. #

Total comments: 1

Patch Set 3 : Make ChromeAutofillClient responsible for adding itself as a ZoomObserver. #

Total comments: 1

Patch Set 4 : Fix typo in comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -2 lines) Patch
M chrome/browser/ui/autofill/chrome_autofill_client.h View 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 2 3 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_helpers.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
wjmaclean
avi@chromium.org: Please review changes in tab_helpers.cc pkasting@chromium.org: Please review changes in chrome_autofill_client.*, tab_helpers.cc This is ...
6 years, 5 months ago (2014-07-09 20:18:31 UTC) #1
Avi (use Gerrit)
On 2014/07/09 20:18:31, wjmaclean wrote: > mailto:avi@chromium.org: Please review changes in tab_helpers.cc > > mailto:pkasting@chromium.org: ...
6 years, 5 months ago (2014-07-09 20:24:40 UTC) #2
wjmaclean
On 2014/07/09 20:24:40, Avi (OOO July 11-27) wrote: > On 2014/07/09 20:18:31, wjmaclean wrote: > ...
6 years, 5 months ago (2014-07-09 20:36:49 UTC) #3
Avi (use Gerrit)
On 2014/07/09 20:36:49, wjmaclean wrote: > I hadn't realized they might be destroyed in arbitrary ...
6 years, 5 months ago (2014-07-09 20:43:30 UTC) #4
Peter Kasting
I feel like I'm out of my depth trying to review this. I'm going to ...
6 years, 5 months ago (2014-07-09 20:51:51 UTC) #5
wjmaclean
On 2014/07/09 20:43:30, Avi (OOO July 11-27) wrote: > On 2014/07/09 20:36:49, wjmaclean wrote: > ...
6 years, 5 months ago (2014-07-09 21:00:15 UTC) #6
wjmaclean
On 2014/07/09 20:51:51, Peter Kasting wrote: > I feel like I'm out of my depth ...
6 years, 5 months ago (2014-07-09 21:00:51 UTC) #7
wjmaclean
isherman@chromium.org: Please review changes in the autofill-related parts of this cl?
6 years, 5 months ago (2014-07-09 21:01:22 UTC) #8
Ilya Sherman
Autofill changes LGTM -- thanks! https://codereview.chromium.org/377423002/diff/1/chrome/browser/ui/autofill/chrome_autofill_client.cc File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): https://codereview.chromium.org/377423002/diff/1/chrome/browser/ui/autofill/chrome_autofill_client.cc#newcode183 chrome/browser/ui/autofill/chrome_autofill_client.cc:183: // just zoom events ...
6 years, 5 months ago (2014-07-09 21:52:43 UTC) #9
Ilya Sherman
BTW, is RenderViewObserver::ZoomLevelChanged obsolete now? Should it be removed entirely?
6 years, 5 months ago (2014-07-09 22:04:23 UTC) #10
wjmaclean
dbeam@chromium.org: Please review changes in zoom_controller.* On 2014/07/09 22:04:23, Ilya Sherman wrote: > BTW, is ...
6 years, 5 months ago (2014-07-10 14:47:36 UTC) #11
Avi (use Gerrit)
https://codereview.chromium.org/377423002/diff/20001/chrome/browser/ui/tab_helpers.cc File chrome/browser/ui/tab_helpers.cc (right): https://codereview.chromium.org/377423002/diff/20001/chrome/browser/ui/tab_helpers.cc#newcode174 chrome/browser/ui/tab_helpers.cc:174: autofill::ChromeAutofillClient::FromWebContents(web_contents)); :( I would much rather move ZoomController before ...
6 years, 5 months ago (2014-07-10 14:59:53 UTC) #12
wjmaclean
On 2014/07/10 14:59:53, Avi (OOO July 11-27) wrote: > https://codereview.chromium.org/377423002/diff/20001/chrome/browser/ui/tab_helpers.cc > File chrome/browser/ui/tab_helpers.cc (right): > ...
6 years, 5 months ago (2014-07-10 15:42:09 UTC) #13
Avi (use Gerrit)
On 2014/07/10 15:42:09, wjmaclean wrote: > On 2014/07/10 14:59:53, Avi (OOO July 11-27) wrote: > ...
6 years, 5 months ago (2014-07-10 15:44:12 UTC) #14
wjmaclean
Revised as per avi@'s suggestion, PTAL.
6 years, 5 months ago (2014-07-10 17:24:50 UTC) #15
Avi (use Gerrit)
lgtm Unfortunate, but OK. https://codereview.chromium.org/377423002/diff/40001/chrome/browser/ui/autofill/chrome_autofill_client.cc File chrome/browser/ui/autofill/chrome_autofill_client.cc (right): https://codereview.chromium.org/377423002/diff/40001/chrome/browser/ui/autofill/chrome_autofill_client.cc#newcode41 chrome/browser/ui/autofill/chrome_autofill_client.cc:41: // Since ZoomController is also ...
6 years, 5 months ago (2014-07-10 17:39:26 UTC) #16
Dan Beam
lgtm
6 years, 5 months ago (2014-07-10 20:34:06 UTC) #17
wjmaclean
The CQ bit was checked by wjmaclean@chromium.org
6 years, 5 months ago (2014-07-10 20:37:28 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjmaclean@chromium.org/377423002/60001
6 years, 5 months ago (2014-07-10 20:39:01 UTC) #19
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 22:59:52 UTC) #20
Message was sent while issue was closed.
Change committed as 282453

Powered by Google App Engine
This is Rietveld 408576698