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

Unified Diff: chrome/browser/autocomplete/network_action_predictor.cc

Issue 8872036: Profiles: Move NetworkActionPredictor to the ProfileKeyedService framework. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove dtor Created 9 years 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/autocomplete/network_action_predictor.cc
diff --git a/chrome/browser/autocomplete/network_action_predictor.cc b/chrome/browser/autocomplete/network_action_predictor.cc
index 444da0711db1d4d0dfe96386ab1e43d91b56dfff..6fcffeae78a4af2c32344a16cee70e7b2b89f4c8 100644
--- a/chrome/browser/autocomplete/network_action_predictor.cc
+++ b/chrome/browser/autocomplete/network_action_predictor.cc
@@ -88,7 +88,6 @@ NetworkActionPredictor::NetworkActionPredictor(Profile* profile)
}
NetworkActionPredictor::~NetworkActionPredictor() {
- db_->OnPredictorDestroyed();
}
void NetworkActionPredictor::RegisterTransitionalMatches(
@@ -189,6 +188,10 @@ bool NetworkActionPredictor::IsPreconnectable(const AutocompleteMatch& match) {
}
}
+void NetworkActionPredictor::Shutdown() {
+ db_->OnPredictorDestroyed();
+}
+
void NetworkActionPredictor::Observe(
int type,
const content::NotificationSource& source,
« no previous file with comments | « chrome/browser/autocomplete/network_action_predictor.h ('k') | chrome/browser/autocomplete/network_action_predictor_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698