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

Unified Diff: chrome/browser/sync/glue/search_engine_data_type_controller.h

Issue 23710022: Convert NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED to CallbackList (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/sync/glue/search_engine_data_type_controller.h
diff --git a/chrome/browser/sync/glue/search_engine_data_type_controller.h b/chrome/browser/sync/glue/search_engine_data_type_controller.h
index 739af36cfd37f951aaf1d4c10c84399a5e68d358..1beb7d7e07b5a84ea285a1df47f0499c6c513884 100644
--- a/chrome/browser/sync/glue/search_engine_data_type_controller.h
+++ b/chrome/browser/sync/glue/search_engine_data_type_controller.h
@@ -8,6 +8,8 @@
#include <string>
#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/search_engines/template_url_service.h"
#include "chrome/browser/sync/glue/generic_change_processor.h"
#include "chrome/browser/sync/glue/ui_data_type_controller.h"
#include "content/public/browser/notification_observer.h"
@@ -15,27 +17,22 @@
namespace browser_sync {
-class SearchEngineDataTypeController : public UIDataTypeController,
- public content::NotificationObserver {
+class SearchEngineDataTypeController : public UIDataTypeController {
public:
SearchEngineDataTypeController(
ProfileSyncComponentsFactory* profile_sync_factory,
Profile* profile,
ProfileSyncService* sync_service);
- // content::NotificationObserver interface.
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
private:
virtual ~SearchEngineDataTypeController();
// FrontendDataTypeController implementations.
virtual bool StartModels() OVERRIDE;
- virtual void StopModels() OVERRIDE;
- content::NotificationRegistrar registrar_;
+ void OnTemplateURLServiceLoaded();
+
+ scoped_ptr<TemplateURLService::Subscription> template_url_subscription_;
DISALLOW_COPY_AND_ASSIGN(SearchEngineDataTypeController);
};

Powered by Google App Engine
This is Rietveld 408576698