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

Unified Diff: chrome/browser/chromeos/drive/search_metadata.cc

Issue 12229002: Misc cleanups in Drive code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/drive/search_metadata.cc
diff --git a/chrome/browser/chromeos/drive/search_metadata.cc b/chrome/browser/chromeos/drive/search_metadata.cc
index bc13d24a3ceb1c86f4e514b594fd8bb2e2d80340..600cbf83af03205efda057ac19a62e6f7d2fe2ae 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());
}

Powered by Google App Engine
This is Rietveld 408576698