| Index: components/query_parser/snippet.cc
|
| diff --git a/components/query_parser/snippet.cc b/components/query_parser/snippet.cc
|
| index f540be5ca32f3bda4998e2b8a016c4d34e66b819..3133d8feda2b9eff021d1e7138fb8c8adc3014a4 100644
|
| --- a/components/query_parser/snippet.cc
|
| +++ b/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.
|
|
|