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

Unified Diff: Source/modules/crypto/DOMWindowCrypto.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/modules/crypto/DOMWindowCrypto.h
diff --git a/Source/modules/crypto/DOMWindowCrypto.h b/Source/modules/crypto/DOMWindowCrypto.h
index 6d92cf7f07b37dfe45e8fc3bc96dade2213b70b0..aba80aa69cd39cbc6399054410f62f407dd952cc 100644
--- a/Source/modules/crypto/DOMWindowCrypto.h
+++ b/Source/modules/crypto/DOMWindowCrypto.h
@@ -43,12 +43,12 @@ class DOMWindow;
class DOMWindowCrypto FINAL : public Supplement<DOMWindow>, public DOMWindowProperty {
public:
virtual ~DOMWindowCrypto();
- static DOMWindowCrypto* from(DOMWindow*);
- static Crypto* crypto(DOMWindow*);
+ static DOMWindowCrypto& from(DOMWindow&);
+ static Crypto* crypto(DOMWindow&);
Crypto* crypto() const;
private:
- explicit DOMWindowCrypto(DOMWindow*);
+ explicit DOMWindowCrypto(DOMWindow&);
static const char* supplementName();
mutable RefPtrWillBePersistent<Crypto> m_crypto;

Powered by Google App Engine
This is Rietveld 408576698