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

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

Issue 2388783002: predictors: Refactor resource_prefetch_predictor_tables. (Closed)
Patch Set: Rebase. Created 4 years, 2 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 91e6d053aea6fbf65b0776c29683228e7a1ad2e2..a6b224c704b8107af4cf0d41dac63fb21bffb2a9 100644
--- a/chrome/browser/ui/webui/predictors/predictors_handler.cc
+++ b/chrome/browser/ui/webui/predictors/predictors_handler.cc
@@ -118,7 +118,7 @@ void PredictorsHandler::AddPrefetchDataMapToListValue(
std::unique_ptr<base::DictionaryValue> main(new base::DictionaryValue());
main->SetString("main_frame_url", p.first);
base::ListValue* resources = new base::ListValue();
- for (const predictors::ResourceData& r : p.second.resources) {
+ for (const predictors::ResourceData& r : p.second.resources()) {
std::unique_ptr<base::DictionaryValue> resource(
new base::DictionaryValue());
resource->SetString("resource_url", r.resource_url());
« no previous file with comments | « chrome/browser/predictors/resource_prefetch_predictor_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698