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

Unified Diff: chrome/browser/predictors/autocomplete_action_predictor.cc

Issue 10699032: autocomplete: Extract AutocompleteResult from autocomplete.*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move comments Created 8 years, 6 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
« no previous file with comments | « chrome/browser/omnibox_search_hint.cc ('k') | chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/predictors/autocomplete_action_predictor.cc
diff --git a/chrome/browser/predictors/autocomplete_action_predictor.cc b/chrome/browser/predictors/autocomplete_action_predictor.cc
index c5ce8a101053afaf06d508d0849c689bb1c83edd..2ac67fa6c65b71987b8115c7a96983df3876f2fd 100644
--- a/chrome/browser/predictors/autocomplete_action_predictor.cc
+++ b/chrome/browser/predictors/autocomplete_action_predictor.cc
@@ -15,9 +15,9 @@
#include "base/string_util.h"
#include "base/stringprintf.h"
#include "base/utf_string_conversions.h"
-#include "chrome/browser/autocomplete/autocomplete.h"
#include "chrome/browser/autocomplete/autocomplete_log.h"
#include "chrome/browser/autocomplete/autocomplete_match.h"
+#include "chrome/browser/autocomplete/autocomplete_result.h"
#include "chrome/browser/history/history.h"
#include "chrome/browser/history/history_notifications.h"
#include "chrome/browser/history/history_service_factory.h"
@@ -140,11 +140,11 @@ void AutocompleteActionPredictor::RegisterTransitionalMatches(
transitional_match);
}
- for (AutocompleteResult::const_iterator it = result.begin();
- it != result.end(); ++it) {
+ for (AutocompleteResult::const_iterator i(result.begin()); i != result.end();
+ ++i) {
if (std::find(match_it->urls.begin(), match_it->urls.end(),
- it->destination_url) == match_it->urls.end()) {
- match_it->urls.push_back(it->destination_url);
+ i->destination_url) == match_it->urls.end()) {
+ match_it->urls.push_back(i->destination_url);
}
}
}
« no previous file with comments | « chrome/browser/omnibox_search_hint.cc ('k') | chrome/browser/ui/webui/omnibox/omnibox_ui_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698