Index: Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp |
diff --git a/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp b/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp |
index a0ca52fcf60dde5adaeec65d352a0b7e2d28c486..fac10dbbfb26a951463e9edf01e6210a15813099 100644 |
--- a/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp |
+++ b/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp |
@@ -121,16 +121,16 @@ static bool verifyProtocolHandlerScheme(const String& scheme, const String& meth |
NavigatorContentUtils* NavigatorContentUtils::from(Page& page) |
{ |
- return static_cast<NavigatorContentUtils*>(RefCountedSupplement<Page, NavigatorContentUtils>::from(page, NavigatorContentUtils::supplementName())); |
+ return static_cast<NavigatorContentUtils*>(Supplement<Page>::from(page, supplementName())); |
} |
NavigatorContentUtils::~NavigatorContentUtils() |
{ |
} |
-PassRefPtr<NavigatorContentUtils> NavigatorContentUtils::create(PassOwnPtr<NavigatorContentUtilsClient> client) |
+PassOwnPtr<NavigatorContentUtils> NavigatorContentUtils::create(PassOwnPtr<NavigatorContentUtilsClient> client) |
{ |
- return adoptRef(new NavigatorContentUtils(client)); |
+ return adoptPtr(new NavigatorContentUtils(client)); |
} |
void NavigatorContentUtils::registerProtocolHandler(Navigator& navigator, const String& scheme, const String& url, const String& title, ExceptionState& exceptionState) |
@@ -218,7 +218,7 @@ const char* NavigatorContentUtils::supplementName() |
void provideNavigatorContentUtilsTo(Page& page, PassOwnPtr<NavigatorContentUtilsClient> client) |
{ |
- RefCountedSupplement<Page, NavigatorContentUtils>::provideTo(page, NavigatorContentUtils::supplementName(), NavigatorContentUtils::create(client)); |
+ NavigatorContentUtils::provideTo(page, NavigatorContentUtils::supplementName(), NavigatorContentUtils::create(client)); |
} |
} // namespace WebCore |