OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <limits> | 5 #include <limits> |
6 #include <set> | 6 #include <set> |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "chrome/browser/history/text_database.h" | 9 #include "chrome/browser/history/text_database.h" |
10 | 10 |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 | 344 |
345 // Compute the snippet based on those matches. | 345 // Compute the snippet based on those matches. |
346 std::string body = statement.ColumnString(4); | 346 std::string body = statement.ColumnString(4); |
347 match.snippet.ComputeSnippet(match_positions, body); | 347 match.snippet.ComputeSnippet(match_positions, body); |
348 } | 348 } |
349 statement.Reset(true); | 349 statement.Reset(true); |
350 return result_count > options.EffectiveMaxCount(); | 350 return result_count > options.EffectiveMaxCount(); |
351 } | 351 } |
352 | 352 |
353 } // namespace history | 353 } // namespace history |
OLD | NEW |