Bug 39440

Summary: [chromium] Adds Geolocation support to DumpRenderTree.
Product: WebKit Reporter: Marcus Bulach <bulach>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, tkent
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch
none
Patch none

Description Marcus Bulach 2010-05-20 12:01:50 PDT
[chromium] Adds Geolocation support to DumpRenderTree.
Comment 1 Marcus Bulach 2010-05-20 12:12:56 PDT
Created attachment 56620 [details]
Patch
Comment 2 Kent Tamura 2010-05-20 20:45:11 PDT
Comment on attachment 56620 [details]
Patch

Thank you for making the patch.
WebKitTools/DumpRenderTree/chromium is not the primary tester yet.  You need to change webkit/tools/test_shell/ in Chromium too.


WebKit/chromium/public/WebGeolocationServiceMock.h:55
 +      static bool m_mockGeolocationPermission;
We don't prepend "m_" for a static field in WebKit style.


WebKitTools/DumpRenderTree/chromium/LayoutTestController.cpp:1303
 +      WebGeolocationServiceMock::setMockGeolocationError(arguments[0].toInt32(), WebString::fromUTF8(arguments[1].toString()));
nit: We have cppVariantToWebString().


r- for the style error.
Comment 3 Marcus Bulach 2010-05-21 03:39:33 PDT
Created attachment 56691 [details]
Patch
Comment 4 Marcus Bulach 2010-05-21 03:43:10 PDT
thanks Tamura-san!

replies inline:

(In reply to comment #2)
> (From update of attachment 56620 [details])
> Thank you for making the patch.
> WebKitTools/DumpRenderTree/chromium is not the primary tester yet.  You need to change webkit/tools/test_shell/ in Chromium too.

yep, the change has been reviewed and I'll submit it soon:
http://codereview.chromium.org/2094003/show

> 
> 
> WebKit/chromium/public/WebGeolocationServiceMock.h:55
>  +      static bool m_mockGeolocationPermission;
> We don't prepend "m_" for a static field in WebKit style.

Done.

> 
> 
> WebKitTools/DumpRenderTree/chromium/LayoutTestController.cpp:1303
>  +      WebGeolocationServiceMock::setMockGeolocationError(arguments[0].toInt32(), WebString::fromUTF8(arguments[1].toString()));
> nit: We have cppVariantToWebString().

ahn, thanks! I went ahead and replaced all occurrences so it won't catch the next reader.
however, please, let me know if you'd prefer to this tidy up in a separate patch, and I'd be happy to revert these changes.

would you mind taking another look? thanks!

> 
> 
> r- for the style error.
Comment 5 Kent Tamura 2010-05-21 03:46:00 PDT
Comment on attachment 56691 [details]
Patch

OK.
Comment 6 WebKit Commit Bot 2010-05-23 02:07:44 PDT
Comment on attachment 56691 [details]
Patch

Clearing flags on attachment: 56691

Committed r60032: <http://trac.webkit.org/changeset/60032>
Comment 7 WebKit Commit Bot 2010-05-23 02:07:50 PDT
All reviewed patches have been landed.  Closing bug.