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

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

Issue 13995007: Revert 194484 "Add the LoggedIn Predictor, to detect which websi..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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: trunk/src/chrome/browser/predictors/predictor_database.cc
===================================================================
--- trunk/src/chrome/browser/predictors/predictor_database.cc (revision 194504)
+++ trunk/src/chrome/browser/predictors/predictor_database.cc (working copy)
@@ -11,7 +11,6 @@
#include "base/metrics/histogram.h"
#include "base/stringprintf.h"
#include "chrome/browser/predictors/autocomplete_action_predictor_table.h"
-#include "chrome/browser/predictors/logged_in_predictor_table.h"
#include "chrome/browser/predictors/resource_prefetch_predictor.h"
#include "chrome/browser/predictors/resource_prefetch_predictor_tables.h"
#include "chrome/browser/prerender/prerender_field_trial.h"
@@ -59,7 +58,6 @@
// TODO(shishir): These tables may not need to be refcounted. Maybe move them
// to using a WeakPtr instead.
scoped_refptr<AutocompleteActionPredictorTable> autocomplete_table_;
- scoped_refptr<LoggedInPredictorTable> logged_in_table_;
scoped_refptr<ResourcePrefetchPredictorTables> resource_prefetch_tables_;
DISALLOW_COPY_AND_ASSIGN(PredictorDatabaseInternal);
@@ -92,7 +90,6 @@
return;
autocomplete_table_->Initialize(db_.get());
- logged_in_table_->Initialize(db_.get());
resource_prefetch_tables_->Initialize(db_.get());
LogDatabaseStats();
@@ -102,7 +99,6 @@
CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
autocomplete_table_->SetCancelled();
- logged_in_table_->SetCancelled();
resource_prefetch_tables_->SetCancelled();
}
@@ -116,7 +112,6 @@
static_cast<int>(db_size / 1024));
autocomplete_table_->LogDatabaseStats();
- logged_in_table_->LogDatabaseStats();
if (is_resource_prefetch_predictor_enabled_)
resource_prefetch_tables_->LogDatabaseStats();
}
@@ -139,11 +134,6 @@
return db_->autocomplete_table_;
}
-scoped_refptr<LoggedInPredictorTable>
- PredictorDatabase::logged_in_table() {
- return db_->logged_in_table_;
-}
-
scoped_refptr<ResourcePrefetchPredictorTables>
PredictorDatabase::resource_prefetch_tables() {
return db_->resource_prefetch_tables_;
« no previous file with comments | « trunk/src/chrome/browser/predictors/predictor_database.h ('k') | trunk/src/chrome/browser/prerender/prerender_field_trial.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698