Index: chrome/browser/webdata/web_data_service.h |
diff --git a/chrome/browser/webdata/web_data_service.h b/chrome/browser/webdata/web_data_service.h |
index 4e2777ae734c94ee531c111aba3a8c96ba26cd54..00852fd222c1266797aad9de694bd7cc7ccf3899 100644 |
--- a/chrome/browser/webdata/web_data_service.h |
+++ b/chrome/browser/webdata/web_data_service.h |
@@ -22,6 +22,7 @@ |
#include "base/synchronization/lock.h" |
#include "chrome/browser/search_engines/template_url.h" |
#include "chrome/browser/search_engines/template_url_id.h" |
+#include "chrome/browser/profiles/refcounted_profile_keyed_service.h" |
#include "chrome/browser/webdata/keyword_table.h" |
#include "content/public/browser/browser_thread.h" |
#include "sql/init_status.h" |
@@ -186,9 +187,7 @@ template <class T> class WDObjectResult : public WDTypedResult { |
class WebDataServiceConsumer; |
-class WebDataService |
- : public base::RefCountedThreadSafe< |
- WebDataService, content::BrowserThread::DeleteOnUIThread> { |
+class WebDataService : public RefcountedProfileKeyedService { |
public: |
// All requests return an opaque handle of the following type. |
typedef int Handle; |
@@ -302,14 +301,15 @@ class WebDataService |
// |web_data_service| may be NULL for testing purposes. |
static void NotifyOfMultipleAutofillChanges(WebDataService* web_data_service); |
+ // RefcountedProfileKeyedService override: |
+ // Shutdown the web data service. The service can no longer be used after this |
+ // call. |
+ virtual void ShutdownOnUIThread() OVERRIDE; |
+ |
// Initializes the web data service. Returns false on failure |
// Takes the path of the profile directory as its argument. |
bool Init(const FilePath& profile_path); |
- // Shutdown the web data service. The service can no longer be used after this |
- // call. |
- void Shutdown(); |
- |
// Returns false if Shutdown() has been called. |
bool IsRunning() const; |