Bug 22240 - Add ifdef around toJS function in Plugin.h
Summary: Add ifdef around toJS function in Plugin.h
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-13 15:08 PST by John Abd-El-Malek
Modified: 2008-12-22 14:13 PST (History)
0 users

See Also:


Attachments
patch (913 bytes, patch)
2008-11-13 15:09 PST, John Abd-El-Malek
darin: review-
Details | Formatted Diff | Diff
patch2 (1.03 KB, patch)
2008-11-13 17:02 PST, John Abd-El-Malek
sam: review-
Details | Formatted Diff | Diff
3rd try (1.06 KB, patch)
2008-11-14 12:57 PST, John Abd-El-Malek
timothy: 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 2008-11-13 15:08:04 PST
Need this change in order to get the file to compile in Chromium.
Comment 1 John Abd-El-Malek 2008-11-13 15:09:07 PST
Created attachment 25139 [details]
patch
Comment 2 Darin Adler 2008-11-13 16:26:52 PST
Comment on attachment 25139 [details]
patch

> Index: WebCore/ChangeLog
> ===================================================================
> --- WebCore/ChangeLog	(revision 38377)
> +++ WebCore/ChangeLog	(working copy)
> @@ -1,3 +1,11 @@
> +2008-11-13  jabdelmalek  <set EMAIL_ADDRESS environment variable>
> +
> +        Reviewed by NOBODY (OOPS!).
> +
> +        WARNING: NO TEST CASES ADDED OR CHANGED
> +
> +        * plugins/Plugin.h:

This is not a sufficient ChangeLog. You need to put your name in, your email address, remove the "WARNING" message since this doesn't need test cases, add the URL of the bug you're fixing, and add a comment explaining the change you're making.

The code change is great. I'm going to say review- since it should be easy for you to make a good ChangeLog and re-post the patch with that included.
Comment 3 John Abd-El-Malek 2008-11-13 17:02:17 PST
Created attachment 25147 [details]
patch2
Comment 4 John Abd-El-Malek 2008-11-13 17:03:01 PST
Comment on attachment 25147 [details]
patch2

Thanks for the info, sorry I haven't sent a patch in a long time (and not with this email) so I forgot that I have to edit the changelog.  Updated patch.
Comment 5 Darin Adler 2008-11-13 17:03:56 PST
Comment on attachment 25147 [details]
patch2

r=me
Comment 6 Sam Weinig 2008-11-13 17:19:49 PST
Comment on attachment 25147 [details]
patch2

I don't think the #ifdef is necessary as the code can be removed.  JSPlugin.cpp now includes JSMimeType.h
Comment 7 John Abd-El-Malek 2008-11-14 12:57:03 PST
Created attachment 25175 [details]
3rd try

You're correct, although the toJS declarations were different (using MimeType vs  Plugin pointers).  I took out the line and verified that the build works.
Comment 8 Sam Weinig 2008-12-22 14:13:48 PST
This has been fixed, though I don't believe by the attached patch.  Closing.