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

Issue 12217024: Use WeakPtr to simplify AutofillPopupControllerImpl memory management (Closed)

Created:
7 years, 10 months ago by kaiwang
Modified:
7 years, 10 months ago
CC:
chromium-reviews, Raman Kakilate, benquan, dhollowa+watch_chromium.org, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer
Visibility:
Public.

Description

Use WeakPtr to simplify AutofillPopupControllerImpl memory management Also change AutofillPopupDelegate to move keyboard listener code to a same place Note. Still working on unittests changes. BUG=140037 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181225

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address comments and fix test compiling #

Total comments: 6

Patch Set 3 : Address comments and fix test #

Total comments: 2

Patch Set 4 : Address comment #

Patch Set 5 : Fix test #

Patch Set 6 : rebase #

Patch Set 7 : Fix android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -68 lines) Patch
M chrome/browser/autofill/autofill_external_delegate.h View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_external_delegate.cc View 1 2 3 4 5 4 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/autofill/test_autofill_external_delegate.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/autofill/test_autofill_external_delegate.cc View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.h View 1 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 4 5 4 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_impl.h View 1 2 3 4 5 4 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_impl.cc View 1 2 3 4 5 6 7 chunks +18 lines, -9 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc View 1 2 3 4 5 8 chunks +17 lines, -25 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_delegate.h View 1 2 3 4 5 2 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
kaiwang
7 years, 10 months ago (2013-02-05 23:29:01 UTC) #1
Ilya Sherman
LGTM, thanks. Please also wait for Evan's review, as he is the person most familiar ...
7 years, 10 months ago (2013-02-05 23:41:04 UTC) #2
kaiwang
https://codereview.chromium.org/12217024/diff/1/chrome/browser/autofill/autofill_external_delegate.cc File chrome/browser/autofill/autofill_external_delegate.cc (right): https://codereview.chromium.org/12217024/diff/1/chrome/browser/autofill/autofill_external_delegate.cc#newcode207 chrome/browser/autofill/autofill_external_delegate.cc:207: void AutofillExternalDelegate::OnPopupShown(content::KeyboardListener* popup) { RenderViewHost::AddKeayboardListener() requires a KeyboardListener*. With ...
7 years, 10 months ago (2013-02-06 00:28:17 UTC) #3
Evan Stade
(I commented on the other CL)
7 years, 10 months ago (2013-02-06 00:30:24 UTC) #4
Ilya Sherman
https://codereview.chromium.org/12217024/diff/4002/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc File chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc (right): https://codereview.chromium.org/12217024/diff/4002/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc#newcode255 chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:255: WeakPtr<AutofillPopupControllerImpl> controller; nit: Why not include the assignment as ...
7 years, 10 months ago (2013-02-06 00:53:09 UTC) #5
Evan Stade
I prefer using SupportsWeakPtr over the factory, but lgtm either way
7 years, 10 months ago (2013-02-06 03:40:04 UTC) #6
kaiwang
https://codereview.chromium.org/12217024/diff/4002/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc File chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc (right): https://codereview.chromium.org/12217024/diff/4002/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc#newcode255 chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:255: WeakPtr<AutofillPopupControllerImpl> controller; because controller is used as a parameter. ...
7 years, 10 months ago (2013-02-06 04:15:29 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaiwang@chromium.org/12217024/5003
7 years, 10 months ago (2013-02-06 04:16:11 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-06 04:42:26 UTC) #9
Ilya Sherman
https://chromiumcodereview.appspot.com/12217024/diff/5003/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc File chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc (right): https://chromiumcodereview.appspot.com/12217024/diff/5003/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc#newcode253 chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:253: controller, &delegate, NULL, gfx::Rect()); Rather than passing the controller ...
7 years, 10 months ago (2013-02-06 05:12:52 UTC) #10
kaiwang
https://codereview.chromium.org/12217024/diff/5003/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc File chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc (right): https://codereview.chromium.org/12217024/diff/5003/chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc#newcode253 chrome/browser/ui/autofill/autofill_popup_controller_unittest.cc:253: controller, &delegate, NULL, gfx::Rect()); On 2013/02/06 05:12:52, Ilya Sherman ...
7 years, 10 months ago (2013-02-06 05:56:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaiwang@chromium.org/12217024/11006
7 years, 10 months ago (2013-02-07 00:56:15 UTC) #12
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/autofill/autofill_popup_delegate.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-07 00:56:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaiwang@chromium.org/12217024/8005
7 years, 10 months ago (2013-02-07 01:12:04 UTC) #14
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-07 02:36:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaiwang@chromium.org/12217024/1013
7 years, 10 months ago (2013-02-07 03:09:56 UTC) #16
commit-bot: I haz the power
7 years, 10 months ago (2013-02-07 06:06:11 UTC) #17
Message was sent while issue was closed.
Change committed as 181225

Powered by Google App Engine
This is Rietveld 408576698