| Index: chrome/browser/history/snippet.cc
|
| diff --git a/chrome/browser/history/snippet.cc b/chrome/browser/history/snippet.cc
|
| index 6e3e93cf5a794179ee5141c6b662f2055315afb2..47c11c33b04405da0ea20bcf015fcd42a1bd6f8e 100644
|
| --- a/chrome/browser/history/snippet.cc
|
| +++ b/chrome/browser/history/snippet.cc
|
| @@ -200,6 +200,12 @@ void Snippet::ConvertMatchPositionsToWide(
|
| }
|
| }
|
|
|
| +Snippet::Snippet() {
|
| +}
|
| +
|
| +Snippet::~Snippet() {
|
| +}
|
| +
|
| void Snippet::ComputeSnippet(const MatchPositions& match_positions,
|
| const std::string& document) {
|
| // The length of snippets we try to produce.
|
| @@ -284,3 +290,8 @@ void Snippet::ComputeSnippet(const MatchPositions& match_positions,
|
| utext_close(document_utext);
|
| swap(text_, snippet);
|
| }
|
| +
|
| +void Snippet::Swap(Snippet* other) {
|
| + text_.swap(other->text_);
|
| + matches_.swap(other->matches_);
|
| +}
|
|
|