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

Unified Diff: chrome/browser/ui/webui/predictors/predictors_handler.cc

Issue 2321343002: Redirect handling in resource prefetch predictor (Closed)
Patch Set: Redirects database schema changed Created 4 years, 3 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/ui/webui/predictors/predictors_handler.cc
diff --git a/chrome/browser/ui/webui/predictors/predictors_handler.cc b/chrome/browser/ui/webui/predictors/predictors_handler.cc
index ebff918a5b07c1e95e838fed1ef65c20e8e2821c..1dc4b2c903756779358e3fb3aca9823ba190f96b 100644
--- a/chrome/browser/ui/webui/predictors/predictors_handler.cc
+++ b/chrome/browser/ui/webui/predictors/predictors_handler.cc
@@ -115,8 +115,8 @@ void PredictorsHandler::AddPrefetchDataMapToListValue(
std::unique_ptr<base::DictionaryValue> main(new base::DictionaryValue());
main->SetString("main_frame_url", it->first);
base::ListValue* resources = new base::ListValue();
- for (ResourcePrefetchPredictor::ResourceRows::const_iterator
- row = it->second.resources.begin();
+ for (std::vector<ResourcePrefetchPredictor::ResourceRow>::const_iterator
+ row = it->second.resources.begin();
row != it->second.resources.end(); ++row) {
std::unique_ptr<base::DictionaryValue> resource(
new base::DictionaryValue());

Powered by Google App Engine
This is Rietveld 408576698