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

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

Issue 2847183002: predictors: Introduce GlowplugPredictor. (Closed)
Patch Set: Address comments. Created 3 years, 7 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/predictors/predictor_database.cc
diff --git a/chrome/browser/predictors/predictor_database.cc b/chrome/browser/predictors/predictor_database.cc
index ebc515ff5521ef78ec8adaa124ed88f3677314c7..c6864d40a11b8259f6cab1151f782a9d97d355a0 100644
--- a/chrome/browser/predictors/predictor_database.cc
+++ b/chrome/browser/predictors/predictor_database.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/predictors/predictor_database.h"
#include <stdint.h>
alexilin 2017/05/12 14:26:46 nit: /stdint.h/cstdint and get rid of empty line?
Benoit L 2017/05/12 15:13:12 Done.
+
#include <memory>
#include "base/bind.h"
@@ -13,6 +14,7 @@
#include "base/logging.h"
#include "base/macros.h"
#include "chrome/browser/predictors/autocomplete_action_predictor_table.h"
+#include "chrome/browser/predictors/glowplug_config.h"
#include "chrome/browser/predictors/resource_prefetch_predictor.h"
#include "chrome/browser/predictors/resource_prefetch_predictor_tables.h"
#include "chrome/browser/profiles/profile.h"
@@ -74,9 +76,8 @@ PredictorDatabaseInternal::PredictorDatabaseInternal(Profile* profile)
// This db does not use [meta] table, store mmap status data elsewhere.
db_->set_mmap_alt_status();
- ResourcePrefetchPredictorConfig config;
is_resource_prefetch_predictor_enabled_ =
- IsSpeculativeResourcePrefetchingEnabled(profile, &config);
+ IsSpeculativeResourcePrefetchingEnabled(profile, nullptr);
}
PredictorDatabaseInternal::~PredictorDatabaseInternal() {

Powered by Google App Engine
This is Rietveld 408576698