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

Issue 135933003: rAc: split TestableAutofillDialogView implementation into its own class (Closed)

Created:
6 years, 11 months ago by Evan Stade
Modified:
6 years, 10 months ago
CC:
chromium-reviews, benquan, tfarina, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

rAc: split TestableAutofillDialogView implementation into its own class This: - makes use of a funky downcast - moves TestableAutofillDialogViews code out of the production binary - makes it impossible to accidentally call testing code from production code mac implementation by groby@chromium.org BUG=306200 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247886

Patch Set 1 #

Patch Set 2 : ready to review #

Patch Set 3 : dont play with fire #

Total comments: 12

Patch Set 4 : fix stuff, sync #

Total comments: 8

Patch Set 5 : OSX test support #

Patch Set 6 : GAE hates me. Reupload. #

Total comments: 8

Patch Set 7 : with mac nits fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+400 lines, -267 lines) Patch
M chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc View 1 2 3 28 chunks +40 lines, -30 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.h View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_view.h View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_view.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
A + chrome/browser/ui/autofill/autofill_dialog_view_tester.h View 1 2 3 2 chunks +21 lines, -7 lines 0 comments Download
D chrome/browser/ui/autofill/testable_autofill_dialog_view.h View 1 2 1 chunk +0 lines, -48 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h View 1 2 3 4 5 chunks +3 lines, -19 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm View 1 2 3 4 1 chunk +0 lines, -57 lines 0 comments Download
A chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.h View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm View 1 2 3 4 5 6 1 chunk +135 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/autofill/autofill_dialog_view_tester_views.h View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/autofill/autofill_dialog_view_tester_views.cc View 1 2 3 1 chunk +96 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_dialog_views.h View 1 2 3 4 chunks +2 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_dialog_views.cc View 1 2 3 4 5 6 2 chunks +8 lines, -70 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Evan Stade
still need to update Mac, but WDYT?
6 years, 11 months ago (2014-01-16 03:50:25 UTC) #1
groby-ooo-7-16
It slightly scares me :) (If anybody ever is crazy enough to add member vars ...
6 years, 11 months ago (2014-01-16 04:15:38 UTC) #2
Evan Stade
turns out that downcasting approach didn't actually work, I think because casting changes the pointer ...
6 years, 11 months ago (2014-01-16 19:50:01 UTC) #3
Evan Stade
review over to dbeam
6 years, 11 months ago (2014-01-23 20:05:08 UTC) #4
Dan Beam
you have a lot of work to do on mac https://chromiumcodereview.appspot.com/135933003/diff/290001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://chromiumcodereview.appspot.com/135933003/diff/290001/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode852 ...
6 years, 11 months ago (2014-01-24 23:37:40 UTC) #5
groby-ooo-7-16
Not sure why the Mac should be a lot of work? Here's the steps as ...
6 years, 10 months ago (2014-01-27 20:09:30 UTC) #6
Evan Stade
> Evan: If that didn't make sense, happy to do that in a patch later ...
6 years, 10 months ago (2014-01-27 21:08:34 UTC) #7
Dan Beam
lgtm https://chromiumcodereview.appspot.com/135933003/diff/590001/chrome/browser/ui/views/autofill/autofill_dialog_view_tester_views.cc File chrome/browser/ui/views/autofill/autofill_dialog_view_tester_views.cc (right): https://chromiumcodereview.appspot.com/135933003/diff/590001/chrome/browser/ui/views/autofill/autofill_dialog_view_tester_views.cc#newcode21 chrome/browser/ui/views/autofill/autofill_dialog_view_tester_views.cc:21: return scoped_ptr<AutofillDialogViewTester>(new nit: a dangling new is odd ...
6 years, 10 months ago (2014-01-28 18:04:47 UTC) #8
Evan Stade
https://chromiumcodereview.appspot.com/135933003/diff/590001/chrome/browser/ui/views/autofill/autofill_dialog_view_tester_views.cc File chrome/browser/ui/views/autofill/autofill_dialog_view_tester_views.cc (right): https://chromiumcodereview.appspot.com/135933003/diff/590001/chrome/browser/ui/views/autofill/autofill_dialog_view_tester_views.cc#newcode21 chrome/browser/ui/views/autofill/autofill_dialog_view_tester_views.cc:21: return scoped_ptr<AutofillDialogViewTester>(new On 2014/01/28 18:04:48, Dan Beam wrote: > ...
6 years, 10 months ago (2014-01-28 18:45:25 UTC) #9
groby-ooo-7-16
There ya go, with added OSX goodness. https://codereview.chromium.org/135933003/diff/590001/chrome/browser/ui/autofill/testable_autofill_dialog_view.h File chrome/browser/ui/autofill/testable_autofill_dialog_view.h (left): https://codereview.chromium.org/135933003/diff/590001/chrome/browser/ui/autofill/testable_autofill_dialog_view.h#oldcode1 chrome/browser/ui/autofill/testable_autofill_dialog_view.h:1: // Copyright ...
6 years, 10 months ago (2014-01-28 20:54:13 UTC) #10
Evan Stade
thanks Rachel! https://codereview.chromium.org/135933003/diff/590001/chrome/browser/ui/autofill/testable_autofill_dialog_view.h File chrome/browser/ui/autofill/testable_autofill_dialog_view.h (left): https://codereview.chromium.org/135933003/diff/590001/chrome/browser/ui/autofill/testable_autofill_dialog_view.h#oldcode1 chrome/browser/ui/autofill/testable_autofill_dialog_view.h:1: // Copyright (c) 2012 The Chromium Authors. ...
6 years, 10 months ago (2014-01-28 22:05:55 UTC) #11
Evan Stade
cocoa lgtm, I can fix these nits, but one of them I'm not sure of. ...
6 years, 10 months ago (2014-01-28 22:09:51 UTC) #12
Dan Beam
lgtm, pretty similar to the views work... https://chromiumcodereview.appspot.com/135933003/diff/630001/chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm (right): https://chromiumcodereview.appspot.com/135933003/diff/630001/chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm#newcode104 chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm:104: forType:type]; nit: ...
6 years, 10 months ago (2014-01-28 22:10:35 UTC) #13
Evan Stade
updated, lgty Rachel?
6 years, 10 months ago (2014-01-29 02:32:29 UTC) #14
groby-ooo-7-16
LGTM indeed https://codereview.chromium.org/135933003/diff/630001/chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm (right): https://codereview.chromium.org/135933003/diff/630001/chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm#newcode111 chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm:111: ofSuggestionForSection:section]; On 2014/01/28 22:10:35, Dan Beam wrote: ...
6 years, 10 months ago (2014-01-29 22:10:21 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/135933003/650001
6 years, 10 months ago (2014-01-29 22:29:18 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=253920
6 years, 10 months ago (2014-01-30 01:59:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/135933003/650001
6 years, 10 months ago (2014-01-30 02:25:21 UTC) #18
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 07:58:13 UTC) #19
Message was sent while issue was closed.
Change committed as 247886

Powered by Google App Engine
This is Rietveld 408576698