Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Unified Diff: Source/core/dom/ContextFeatures.cpp

Issue 224113006: Apply OwnPtr|PassOwnPtr to member variables and arguments in ContextFeatures. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/ContextFeatures.h ('k') | Source/web/ContextFeaturesClientImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ContextFeatures.cpp
diff --git a/Source/core/dom/ContextFeatures.cpp b/Source/core/dom/ContextFeatures.cpp
index 377c50e69cd79fe232d5d78ff787dffa94afaca7..19dfa9486cd16b0563204b85fb05ed381a435800 100644
--- a/Source/core/dom/ContextFeatures.cpp
+++ b/Source/core/dom/ContextFeatures.cpp
@@ -33,10 +33,9 @@
namespace WebCore {
-ContextFeaturesClient* ContextFeaturesClient::empty()
+PassOwnPtr<ContextFeaturesClient> ContextFeaturesClient::empty()
{
- DEFINE_STATIC_LOCAL(ContextFeaturesClient, empty, ());
- return &empty;
+ return adoptPtr(new ContextFeaturesClient());
}
const char* ContextFeatures::supplementName()
@@ -84,7 +83,7 @@ bool ContextFeatures::pushStateEnabled(Document* document)
return document->contextFeatures().isEnabled(document, PushState, true);
}
-void provideContextFeaturesTo(Page& page, ContextFeaturesClient* client)
+void provideContextFeaturesTo(Page& page, PassOwnPtr<ContextFeaturesClient> client)
{
RefCountedSupplement<Page, ContextFeatures>::provideTo(page, ContextFeatures::supplementName(), ContextFeatures::create(client));
}
« no previous file with comments | « Source/core/dom/ContextFeatures.h ('k') | Source/web/ContextFeaturesClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698