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

Unified Diff: chrome/browser/sync/glue/autofill_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/autofill_data_type_controller.cc
===================================================================
--- chrome/browser/sync/glue/autofill_data_type_controller.cc (revision 91968)
+++ chrome/browser/sync/glue/autofill_data_type_controller.cc (working copy)
@@ -10,10 +10,10 @@
#include "chrome/browser/sync/profile_sync_factory.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/webdata/web_data_service.h"
+#include "chrome/common/chrome_notification_types.h"
#include "content/browser/browser_thread.h"
#include "content/common/notification_service.h"
#include "content/common/notification_source.h"
-#include "content/common/notification_type.h"
namespace browser_sync {
@@ -45,7 +45,7 @@
if (web_data_service_.get() && web_data_service_->IsDatabaseLoaded()) {
return true;
} else {
- notification_registrar_.Add(this, NotificationType::WEB_DATABASE_LOADED,
+ notification_registrar_.Add(this, chrome::NOTIFICATION_WEB_DATABASE_LOADED,
NotificationService::AllSources());
return false;
}
@@ -62,12 +62,12 @@
StartDoneImpl(ASSOCIATION_FAILED, NOT_RUNNING, FROM_HERE);
}
} else {
- notification_registrar_.Add(this, NotificationType::WEB_DATABASE_LOADED,
+ notification_registrar_.Add(this, chrome::NOTIFICATION_WEB_DATABASE_LOADED,
NotificationService::AllSources());
}
}
-void AutofillDataTypeController::Observe(NotificationType type,
+void AutofillDataTypeController::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));

Powered by Google App Engine
This is Rietveld 408576698