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 068317a6a778a96ec851406646925dd0ff5a4a78..d11f14f57847e05c7cf959eb15a61e7784afbc5b 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
@@ -516,9 +516,7 @@ void InspectorPageAgent::searchContentAfterResourcesContentLoaded(const String& |
return; |
} |
- std::unique_ptr<protocol::Array<protocol::Debugger::SearchMatch>> results; |
- results = V8ContentSearchUtil::searchInTextByLines(m_v8Session, content, query, caseSensitive, isRegex); |
- callback->sendSuccess(std::move(results)); |
+ callback->sendSuccess(V8ContentSearchUtil::searchInTextByLines(m_v8Session, content, query, 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) |