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

Unified Diff: chrome/browser/sync/glue/typed_url_data_type_controller.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/typed_url_data_type_controller.cc
===================================================================
--- chrome/browser/sync/glue/typed_url_data_type_controller.cc (revision 91968)
+++ chrome/browser/sync/glue/typed_url_data_type_controller.cc (working copy)
@@ -10,6 +10,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_factory.h"
#include "chrome/browser/sync/profile_sync_service.h"
+#include "chrome/common/chrome_notification_types.h"
#include "content/browser/browser_thread.h"
#include "content/common/notification_service.h"
@@ -71,7 +72,7 @@
history_service_ = history;
return true;
} else {
- notification_registrar_.Add(this, NotificationType::HISTORY_LOADED,
+ notification_registrar_.Add(this, chrome::NOTIFICATION_HISTORY_LOADED,
NotificationService::AllSources());
return false;
}
@@ -99,13 +100,13 @@
set_change_processor(sync_components.change_processor);
}
-void TypedUrlDataTypeController::Observe(NotificationType type,
+void TypedUrlDataTypeController::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK_EQ(state(), MODEL_STARTING);
notification_registrar_.Remove(this,
- NotificationType::HISTORY_LOADED,
+ chrome::NOTIFICATION_HISTORY_LOADED,
NotificationService::AllSources());
history_service_ = profile()->GetHistoryServiceWithoutCreating();
DCHECK(history_service_.get());
« no previous file with comments | « chrome/browser/sync/glue/typed_url_data_type_controller.h ('k') | chrome/browser/sync/notifier/invalidation_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698