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

Unified Diff: Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp

Issue 23503016: Cleanup: Remove the WebCryptoAlgorithm::name() attribute. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename get() --> instance() Created 7 years, 4 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 | « no previous file | Source/modules/crypto/Algorithm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
diff --git a/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp b/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
index fe8ff81ecfc897438587f9898149ce99037543d7..1bdd81b7ce0d375a8992238bd9c98990752ef2f9 100644
--- a/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
+++ b/Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
@@ -39,36 +39,34 @@ namespace WebKit {
class WebCryptoAlgorithmPrivate : public ThreadSafeRefCounted<WebCryptoAlgorithmPrivate> {
public:
- WebCryptoAlgorithmPrivate(WebCryptoAlgorithmId id, const char* name, PassOwnPtr<WebCryptoAlgorithmParams> params)
+ WebCryptoAlgorithmPrivate(WebCryptoAlgorithmId id, PassOwnPtr<WebCryptoAlgorithmParams> params)
: id(id)
- , name(name)
, params(params)
{
}
WebCryptoAlgorithmId id;
- const char* const name;
OwnPtr<WebCryptoAlgorithmParams> params;
};
-WebCryptoAlgorithm::WebCryptoAlgorithm(WebCryptoAlgorithmId id, const char* name, PassOwnPtr<WebCryptoAlgorithmParams> params)
- : m_private(adoptRef(new WebCryptoAlgorithmPrivate(id, name, params)))
+WebCryptoAlgorithm::WebCryptoAlgorithm(WebCryptoAlgorithmId id, PassOwnPtr<WebCryptoAlgorithmParams> params)
+ : m_private(adoptRef(new WebCryptoAlgorithmPrivate(id, params)))
{
}
-WebCryptoAlgorithm WebCryptoAlgorithm::adoptParamsAndCreate(WebCryptoAlgorithmId id, const char* name, WebCryptoAlgorithmParams* params)
+WebCryptoAlgorithm WebCryptoAlgorithm::adoptParamsAndCreate(WebCryptoAlgorithmId id, const char*, WebCryptoAlgorithmParams* params)
{
- return WebCryptoAlgorithm(id, name, adoptPtr(params));
+ return WebCryptoAlgorithm(id, adoptPtr(params));
}
-WebCryptoAlgorithmId WebCryptoAlgorithm::id() const
+WebCryptoAlgorithm WebCryptoAlgorithm::adoptParamsAndCreate(WebCryptoAlgorithmId id, WebCryptoAlgorithmParams* params)
{
- return m_private->id;
+ return WebCryptoAlgorithm(id, adoptPtr(params));
}
-const char* WebCryptoAlgorithm::name() const
+WebCryptoAlgorithmId WebCryptoAlgorithm::id() const
{
- return m_private->name;
+ return m_private->id;
}
WebCryptoAlgorithmParamsType WebCryptoAlgorithm::paramsType() const
« no previous file with comments | « no previous file | Source/modules/crypto/Algorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698