summaryrefslogtreecommitdiff
path: root/chromium/components/query_parser/snippet.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/query_parser/snippet.cc')
-rw-r--r--chromium/components/query_parser/snippet.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/components/query_parser/snippet.cc b/chromium/components/query_parser/snippet.cc
index f540be5ca32..3133d8feda2 100644
--- a/chromium/components/query_parser/snippet.cc
+++ b/chromium/components/query_parser/snippet.cc
@@ -210,9 +210,16 @@ Snippet::Snippet() {
Snippet::Snippet(const Snippet& other) = default;
+// TODO(bug 706963) this should be implemented as "= default" when Android
+// toolchain is updated.
+Snippet::Snippet(Snippet&& other) noexcept
+ : text_(std::move(other.text_)), matches_(std::move(other.matches_)) {}
+
Snippet::~Snippet() {
}
+Snippet& Snippet::operator=(const Snippet&) = default;
+
void Snippet::ComputeSnippet(const MatchPositions& match_positions,
const std::string& document) {
// The length of snippets we try to produce.