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

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

Issue 8872036: Profiles: Move NetworkActionPredictor to the ProfileKeyedService framework. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add comment as reminder 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.h
diff --git a/chrome/browser/autocomplete/network_action_predictor.h b/chrome/browser/autocomplete/network_action_predictor.h
index 20b570815752a92fe6ceffdeb6d59db08cb3a124..cbab0392762f54a69862dae03c54a77ddaae345a 100644
--- a/chrome/browser/autocomplete/network_action_predictor.h
+++ b/chrome/browser/autocomplete/network_action_predictor.h
@@ -13,6 +13,7 @@
#include "base/memory/weak_ptr.h"
#include "base/string16.h"
#include "chrome/browser/autocomplete/network_action_predictor_database.h"
+#include "chrome/browser/profiles/profile_keyed_service.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "googleurl/src/gurl.h"
@@ -36,7 +37,8 @@ class URLDatabase;
// use PostTaskAndReply without fear of crashes if it is destroyed before the
// reply triggers. This is necessary during initialization.
class NetworkActionPredictor
- : public content::NotificationObserver,
+ : public ProfileKeyedService,
+ public content::NotificationObserver,
public base::SupportsWeakPtr<NetworkActionPredictor> {
public:
enum Action {
@@ -112,6 +114,9 @@ class NetworkActionPredictor
static const int kMaximumDaysToKeepEntry;
+ // ProfileKeyedService
+ virtual void Shutdown() OVERRIDE;
+
// NotificationObserver
virtual void Observe(int type,
const content::NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698