Index: Source/WebKit/chromium/src/ChromeClientImpl.cpp |
=================================================================== |
--- Source/WebKit/chromium/src/ChromeClientImpl.cpp (revision 135211) |
+++ Source/WebKit/chromium/src/ChromeClientImpl.cpp (working copy) |
@@ -706,9 +706,9 @@ |
#endif |
#if ENABLE(CALENDAR_PICKER) |
-PassOwnPtr<WebCore::DateTimeChooser> ChromeClientImpl::openDateTimeChooser(WebCore::DateTimeChooserClient* pickerClient, const WebCore::DateTimeChooserParameters& parameters) |
+PassRefPtr<DateTimeChooser> ChromeClientImpl::openDateTimeChooser(DateTimeChooserClient* pickerClient, const DateTimeChooserParameters& parameters) |
{ |
- return adoptPtr(new DateTimeChooserImpl(this, pickerClient, parameters)); |
+ return DateTimeChooserImpl::create(this, pickerClient, parameters); |
} |
#endif |