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

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

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/data_type_manager_impl.cc
===================================================================
--- chrome/browser/sync/glue/data_type_manager_impl.cc (revision 106380)
+++ chrome/browser/sync/glue/data_type_manager_impl.cc (working copy)
@@ -18,7 +18,7 @@
#include "chrome/browser/sync/glue/sync_backend_host.h"
#include "chrome/common/chrome_notification_types.h"
#include "content/browser/browser_thread.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_source.h"
@@ -457,10 +457,10 @@
}
void DataTypeManagerImpl::NotifyStart() {
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_SYNC_CONFIGURE_START,
content::Source<DataTypeManager>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
void DataTypeManagerImpl::NotifyDone(const ConfigureResult& result) {
@@ -493,7 +493,7 @@
NOTREACHED();
break;
}
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_SYNC_CONFIGURE_DONE,
content::Source<DataTypeManager>(this),
content::Details<const ConfigureResult>(&result));
@@ -508,10 +508,10 @@
AddToConfigureTime();
VLOG(1) << "Accumulated spent configuring: "
<< configure_time_delta_.InSecondsF() << "s";
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_SYNC_CONFIGURE_BLOCKED,
content::Source<DataTypeManager>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
void DataTypeManagerImpl::AddToConfigureTime() {

Powered by Google App Engine
This is Rietveld 408576698