Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: trunk/src/chrome/browser/history/text_database.cc

Issue 19637009: Revert 212459 "Remove TextDatabase from the history service." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « trunk/src/chrome/browser/history/text_database.h ('k') | trunk/src/chrome/browser/history/text_database_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698