summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/drive/search_metadata.cc
diff options
context:
space:
mode:
authorkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-12 05:18:03 +0000
committerkinaba@chromium.org <kinaba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-12 05:18:03 +0000
commitdb7ed13e6ce3fb75e8556c0efad32c933ec1c768 (patch)
tree246981053aefe91ef7cbf082656746292b772e81 /chrome/browser/chromeos/drive/search_metadata.cc
parent7864eb83fbf52fdd80047a028ac6bda113567c69 (diff)
downloadchromium_src-db7ed13e6ce3fb75e8556c0efad32c933ec1c768.zip
chromium_src-db7ed13e6ce3fb75e8556c0efad32c933ec1c768.tar.gz
chromium_src-db7ed13e6ce3fb75e8556c0efad32c933ec1c768.tar.bz2
Misc cleanups in Drive code.
Typo fix, style fix, unused #include/forward-declarations clean up, adding const, reordering declarations properly, etc. BUG=none. TEST=it compiles. Review URL: https://codereview.chromium.org/12229002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181871 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/drive/search_metadata.cc')
-rw-r--r--chrome/browser/chromeos/drive/search_metadata.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/chromeos/drive/search_metadata.cc b/chrome/browser/chromeos/drive/search_metadata.cc
index bc13d24..600cbf8 100644
--- a/chrome/browser/chromeos/drive/search_metadata.cc
+++ b/chrome/browser/chromeos/drive/search_metadata.cc
@@ -113,7 +113,7 @@ class SearchMetadataHelper {
// Search is complete. Send the result to the callback.
std::sort(results_->begin(), results_->end(), &CompareByTimestamp);
if (results_->size() > static_cast<size_t>(at_most_num_matches_)) {
- // Don't use resize() as it requres a default constructor.
+ // Don't use resize() as it requires a default constructor.
results_->erase(results_->begin() + at_most_num_matches_,
results_->end());
}