Bug 52169 - [chromium] Call WebAutoFillClient instead of WebViewClient for autofill related callbacks
Summary: [chromium] Call WebAutoFillClient instead of WebViewClient for autofill relat...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: John Abd-El-Malek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-10 13:17 PST by John Abd-El-Malek
Modified: 2011-01-10 16:27 PST (History)
5 users (show)

See Also:


Attachments
Patch (17.28 KB, patch)
2011-01-10 13:25 PST, John Abd-El-Malek
no flags Details | Formatted Diff | Diff
Patch (17.54 KB, patch)
2011-01-10 14:01 PST, John Abd-El-Malek
no flags Details | Formatted Diff | Diff
Patch (19.35 KB, patch)
2011-01-10 14:37 PST, John Abd-El-Malek
no flags Details | Formatted Diff | Diff
Patch (19.66 KB, patch)
2011-01-10 15:52 PST, John Abd-El-Malek
jamesr: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Abd-El-Malek 2011-01-10 13:17:51 PST
[chromium] Call WebAutoFillClient instead of WebViewClient for autofill related callbacks
Comment 1 John Abd-El-Malek 2011-01-10 13:25:56 PST
Created attachment 78442 [details]
Patch
Comment 2 WebKit Review Bot 2011-01-10 13:27:27 PST
Attachment 78442 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'WebKit/chromium/ChangeLog', u'WebKit/chromium/public/WebView.h', u'WebKit/chromium/public/WebViewClient.h', u'WebKit/chromium/src/AutoFillPopupMenuClient.cpp', u'WebKit/chromium/src/EditorClientImpl.cpp', u'WebKit/chromium/src/WebViewImpl.cpp', u'WebKit/chromium/src/WebViewImpl.h', u'WebKit/chromium/src/WebWorkerBase.cpp']" exit_code: 1
WebKit/chromium/src/WebViewImpl.h:370:  The parameter name "client" adds no information, so it should be removed.  [readability/parameter_name] [5]
WebKit/chromium/src/WebViewImpl.h:372:  The parameter name "autoFillClient" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 2 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 John Abd-El-Malek 2011-01-10 13:30:12 PST
hey guys, this is part of the autofill cleanup in RenderView.  It does touch one function in the WebKit API (WebView::create), but I don't think it needs Darin's approval since he had already approved the interface that's used there.
Comment 4 WebKit Review Bot 2011-01-10 13:30:16 PST
Attachment 78442 [details] did not build on chromium:
Build output: http://queues.webkit.org/results/7410129
Comment 5 John Abd-El-Malek 2011-01-10 13:32:05 PST
(In reply to comment #4)
> Attachment 78442 [details] did not build on chromium:
> Build output: http://queues.webkit.org/results/7410129

build failure is because it's using an old version of Chrome.  that specific code now has an ifdef for WEBKIT_HAS_WEB_AUTO_FILL_CLIENT
Comment 6 James Robinson 2011-01-10 13:32:55 PST
It's using the version specified in WebKit/chromium/DEPS.  You'll have to roll that as well in order to keep the build.webkit.org bots compiling.
Comment 7 John Abd-El-Malek 2011-01-10 13:41:17 PST
(In reply to comment #6)
> It's using the version specified in WebKit/chromium/DEPS.  You'll have to roll that as well in order to keep the build.webkit.org bots compiling.

thanks, I didn't know about that. updating
Comment 8 James Robinson 2011-01-10 13:42:39 PST
Comment on attachment 78442 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=78442&action=review

Please update the chromium_rev line in WebKit/chromium/DEPS so the builds don't break.

> WebKit/chromium/src/WebViewImpl.h:372
> +    WebViewImpl(WebViewClient* client,
> +                WebDevToolsAgentClient* devToolsClient,
> +                WebAutoFillClient* autoFillClient);

WebKit style is to leave out the parameter names for params like this.
Comment 9 John Abd-El-Malek 2011-01-10 13:44:47 PST
Comment on attachment 78442 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=78442&action=review

>> WebKit/chromium/src/WebViewImpl.h:372
>> +                WebAutoFillClient* autoFillClient);
> 
> WebKit style is to leave out the parameter names for params like this.

right, I was trying to be consistent with the two other existing parameters though.  Should I change them as well?
Comment 10 James Robinson 2011-01-10 13:47:49 PST
(In reply to comment #9)
> (From update of attachment 78442 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=78442&action=review
> 
> >> WebKit/chromium/src/WebViewImpl.h:372
> >> +                WebAutoFillClient* autoFillClient);
> > 
> > WebKit style is to leave out the parameter names for params like this.
> 
> right, I was trying to be consistent with the two other existing parameters though.  Should I change them as well?

Yeah - nuke 'em all so the style checker stays quiet.
Comment 11 John Abd-El-Malek 2011-01-10 14:01:19 PST
Created attachment 78449 [details]
Patch
Comment 12 WebKit Review Bot 2011-01-10 14:15:04 PST
Attachment 78449 [details] did not build on chromium:
Build output: http://queues.webkit.org/results/7384102
Comment 13 James Robinson 2011-01-10 14:30:56 PST
Comment on attachment 78449 [details]
Patch

Looks like you have to edit TestShell.cpp as well.
Comment 14 John Abd-El-Malek 2011-01-10 14:33:55 PST
(In reply to comment #13)
> (From update of attachment 78449 [details])
> Looks like you have to edit TestShell.cpp as well.

yep, on it.  I didn't know that many places used WebView::create, including some more in Chrome :)
Comment 15 John Abd-El-Malek 2011-01-10 14:37:22 PST
Created attachment 78452 [details]
Patch
Comment 16 WebKit Review Bot 2011-01-10 14:53:46 PST
Attachment 78452 [details] did not build on chromium:
Build output: http://queues.webkit.org/results/7374117
Comment 17 John Abd-El-Malek 2011-01-10 14:56:19 PST
(In reply to comment #16)
> Attachment 78452 [details] did not build on chromium:
> Build output: http://queues.webkit.org/results/7374117

this one is not my fault! looks like a buildbot error
Comment 18 John Abd-El-Malek 2011-01-10 15:52:57 PST
Created attachment 78464 [details]
Patch
Comment 19 John Abd-El-Malek 2011-01-10 15:53:26 PST
(In reply to comment #17)
> (In reply to comment #16)
> > Attachment 78452 [details] [details] did not build on chromium:
> > Build output: http://queues.webkit.org/results/7374117
> 
> this one is not my fault! looks like a buildbot error

James explained the problem, fixed
Comment 20 James Robinson 2011-01-10 15:57:39 PST
I think this looks all right, gonna wait for the cr-linux bot to cycle just to be sure ui.gyp doesn't have any other nasty dependencies.
Comment 21 James Robinson 2011-01-10 16:06:25 PST
Comment on attachment 78464 [details]
Patch

R=me
Comment 22 John Abd-El-Malek 2011-01-10 16:27:57 PST
Committed r75448: <http://trac.webkit.org/changeset/75448>