Index: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
index d11f14f57847e05c7cf959eb15a61e7784afbc5b..1ce19cb0166fb162e8918e72a9856a422578ece5 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
@@ -63,7 +63,6 @@ |
#include "platform/PlatformResourceLoader.h" |
#include "platform/UserGestureIndicator.h" |
#include "platform/inspector_protocol/Values.h" |
-#include "platform/v8_inspector/public/V8ContentSearchUtil.h" |
#include "platform/v8_inspector/public/V8InspectorSession.h" |
#include "platform/weborigin/SecurityOrigin.h" |
#include "wtf/CurrentTime.h" |
@@ -516,7 +515,10 @@ void InspectorPageAgent::searchContentAfterResourcesContentLoaded(const String& |
return; |
} |
- callback->sendSuccess(V8ContentSearchUtil::searchInTextByLines(m_v8Session, content, query, caseSensitive, isRegex)); |
+ content.ensure16Bit(); |
+ String query16 = query; |
+ query16.ensure16Bit(); |
+ callback->sendSuccess(m_v8Session->searchInTextByLines(content.characters16(), content.length(), query16.characters16(), query16.length(), caseSensitive, isRegex)); |
} |
void InspectorPageAgent::searchInResource(ErrorString*, const String& frameId, const String& url, const String& query, const Maybe<bool>& optionalCaseSensitive, const Maybe<bool>& optionalIsRegex, std::unique_ptr<SearchInResourceCallback> callback) |