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

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

Issue 2800133003: Avoid duplicate functions: one AddStringToDigestor is enough (Closed)
Patch Set: Adding spacer lines Created 3 years, 5 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 | « third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8d2ea535cf47fb4890d1784a3931bfaa62ea71f4..a4e464af5740421d1a1057e535e9946434b2fc0d 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
@@ -22,6 +22,7 @@
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/DOMNodeIds.h"
#include "core/frame/LocalFrame.h"
+#include "core/inspector/AddStringToDigestor.h"
#include "core/inspector/InspectedFrames.h"
#include "core/inspector/InspectorCSSAgent.h"
#include "core/inspector/InspectorStyleSheet.h"
@@ -454,13 +455,6 @@ static CSSPropertyID g_transition_properties[] = {
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 =
id_to_animation_type_.at(String::Number(animation.SequenceNumber()));
« no previous file with comments | « third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698