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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp

Issue 2800133003: Avoid duplicate functions: one AddStringToDigestor is enough (Closed)
Patch Set: Created 3 years, 8 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: third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
index 24ccfd2fef9f10416ef1cd3897643ec5ef6cbb76..8810d41da1e0ca51551e6ac1c0cf019a3647c8a8 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
@@ -27,6 +27,7 @@
#include "core/inspector/InspectorCSSAgent.h"
#include "core/inspector/InspectorStyleSheet.h"
#include "core/inspector/V8InspectorString.h"
+#include "core/inspector/addStringToDigestor.h"
#include "platform/Decimal.h"
#include "platform/animation/TimingFunction.h"
#include "wtf/text/Base64.h"
@@ -452,13 +453,6 @@ static CSSPropertyID transitionProperties[] = {
CSSPropertyTransitionProperty, CSSPropertyTransitionTimingFunction,
};
-static void addStringToDigestor(WebCryptoDigestor* digestor,
- const String& string) {
- digestor->consume(
- reinterpret_cast<const unsigned char*>(string.ascii().data()),
- string.length());
-}
-
String InspectorAnimationAgent::createCSSId(blink::Animation& animation) {
String type =
m_idToAnimationType.at(String::number(animation.sequenceNumber()));

Powered by Google App Engine
This is Rietveld 408576698