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

Unified Diff: chrome/browser/sync/backend_migrator.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
« no previous file with comments | « chrome/browser/sync/backend_migrator.h ('k') | chrome/browser/sync/backend_migrator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/backend_migrator.cc
===================================================================
--- chrome/browser/sync/backend_migrator.cc (revision 91968)
+++ chrome/browser/sync/backend_migrator.cc (working copy)
@@ -11,6 +11,7 @@
#include "chrome/browser/sync/engine/configure_reason.h"
#include "chrome/browser/sync/glue/data_type_manager.h"
#include "chrome/browser/sync/sessions/session_state.h"
+#include "chrome/common/chrome_notification_types.h"
#include "content/browser/browser_thread.h"
#include "content/common/notification_details.h"
#include "content/common/notification_source.h"
@@ -26,7 +27,7 @@
: state_(IDLE), service_(service), manager_(manager),
restart_migration_(false),
method_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
- registrar_.Add(this, NotificationType::SYNC_CONFIGURE_DONE,
+ registrar_.Add(this, chrome::NOTIFICATION_SYNC_CONFIGURE_DONE,
Source<DataTypeManager>(manager_));
service_->AddObserver(this);
}
@@ -113,10 +114,10 @@
manager_->Configure(full_set, sync_api::CONFIGURE_REASON_MIGRATION);
}
-void BackendMigrator::Observe(NotificationType type,
+void BackendMigrator::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK_EQ(NotificationType::SYNC_CONFIGURE_DONE, type.value);
+ DCHECK_EQ(chrome::NOTIFICATION_SYNC_CONFIGURE_DONE, type);
if (state_ == IDLE)
return;
« no previous file with comments | « chrome/browser/sync/backend_migrator.h ('k') | chrome/browser/sync/backend_migrator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698