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

Unified Diff: Source/web/ContextFeaturesClientImpl.h

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.cpp ('k') | Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ContextFeaturesClientImpl.h
diff --git a/Source/web/ContextFeaturesClientImpl.h b/Source/web/ContextFeaturesClientImpl.h
index cc7d26460b5023aad3158247e653514da5d186fb..d0635601e9c3a5454b1c38e67592408a1d42da89 100644
--- a/Source/web/ContextFeaturesClientImpl.h
+++ b/Source/web/ContextFeaturesClientImpl.h
@@ -37,12 +37,17 @@ namespace blink {
class ContextFeaturesClientImpl FINAL : public WebCore::ContextFeaturesClient {
public:
- ContextFeaturesClientImpl() { }
+ static PassOwnPtr<ContextFeaturesClientImpl> create()
+ {
+ return adoptPtr(new ContextFeaturesClientImpl());
+ }
virtual bool isEnabled(WebCore::Document*, WebCore::ContextFeatures::FeatureType, bool defaultValue) OVERRIDE;
virtual void urlDidChange(WebCore::Document*) OVERRIDE;
private:
+ ContextFeaturesClientImpl() { }
+
bool askIfIsEnabled(WebCore::Document*, WebCore::ContextFeatures::FeatureType, bool defaultValue);
};
« no previous file with comments | « Source/core/dom/ContextFeatures.cpp ('k') | Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698