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

Unified Diff: Source/core/testing/InternalSettings.h

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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
Index: Source/core/testing/InternalSettings.h
diff --git a/Source/core/testing/InternalSettings.h b/Source/core/testing/InternalSettings.h
index 587d44dedd1c8d6290786e81f41333bd3b3b8abf..b95fcfe59a6db9785cfb0c64ba07ddf5eb24a2e2 100644
--- a/Source/core/testing/InternalSettings.h
+++ b/Source/core/testing/InternalSettings.h
@@ -72,11 +72,11 @@ public:
bool m_originalPasswordGenerationDecorationEnabled;
};
- static PassRefPtr<InternalSettings> create(Page* page)
+ static PassRefPtr<InternalSettings> create(Page& page)
{
return adoptRef(new InternalSettings(page));
}
- static InternalSettings* from(Page*);
+ static InternalSettings* from(Page&);
void hostDestroyed() { m_page = 0; }
virtual ~InternalSettings();
@@ -122,7 +122,7 @@ public:
void setExperimentalContentSecurityPolicyFeaturesEnabled(bool);
private:
- explicit InternalSettings(Page*);
+ explicit InternalSettings(Page&);
Settings* settings() const;
Page* page() const { return m_page; }

Powered by Google App Engine
This is Rietveld 408576698