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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8StringUtil.cpp

Issue 2182423002: [DevTools] Remove V8ContentSearchUtil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@strings-1
Patch Set: just removal Created 4 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
Index: third_party/WebKit/Source/platform/v8_inspector/V8StringUtil.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8StringUtil.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8StringUtil.cpp
index b685e816fcbb2f7eda42c07620b88b789826ccc0..1509153a3f9a8134ecbf41989846f48c4dcbbd1e 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8StringUtil.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8StringUtil.cpp
@@ -8,7 +8,6 @@
#include "platform/v8_inspector/V8DebuggerImpl.h"
#include "platform/v8_inspector/V8InspectorSessionImpl.h"
#include "platform/v8_inspector/V8Regex.h"
-#include "platform/v8_inspector/public/V8ContentSearchUtil.h"
namespace blink {
@@ -203,19 +202,6 @@ String16 findSourceMapURL(const String16& content, bool multiline, bool* depreca
return findMagicComment(content, "sourceMappingURL", multiline, deprecated);
}
-namespace V8ContentSearchUtil {
-
-std::unique_ptr<protocol::Array<protocol::Debugger::API::SearchMatch>> searchInTextByLines(V8InspectorSession* session, const String16& text, const String16& query, const bool caseSensitive, const bool isRegex)
-{
- std::vector<std::unique_ptr<protocol::Debugger::SearchMatch>> matches = searchInTextByLinesImpl(session, text, query, caseSensitive, isRegex);
- std::unique_ptr<protocol::Array<protocol::Debugger::API::SearchMatch>> result = protocol::Array<protocol::Debugger::API::SearchMatch>::create();
- for (size_t i = 0; i < matches.size(); ++i)
- result->addItem(std::move(matches[i]));
- return result;
-}
-
-} // namespace V8ContentSearchUtil
-
std::unique_ptr<protocol::Value> toProtocolValue(v8::Local<v8::Context> context, v8::Local<v8::Value> value, int maxDepth)
{
if (value.IsEmpty()) {

Powered by Google App Engine
This is Rietveld 408576698