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

Unified Diff: chrome/browser/metrics/metrics_service.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
« no previous file with comments | « chrome/browser/memory_purger.cc ('k') | chrome/browser/metrics/metrics_service_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_service.cc
===================================================================
--- chrome/browser/metrics/metrics_service.cc (revision 106380)
+++ chrome/browser/metrics/metrics_service.cc (working copy)
@@ -179,7 +179,7 @@
#include "content/browser/plugin_service.h"
#include "content/browser/renderer_host/render_process_host.h"
#include "content/common/child_process_info.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "webkit/plugins/npapi/plugin_list.h"
#include "webkit/plugins/webplugininfo.h"
@@ -459,35 +459,35 @@
content::NotificationRegistrar* registrar,
content::NotificationObserver* observer) {
registrar->Add(observer, chrome::NOTIFICATION_BROWSER_OPENED,
- NotificationService::AllBrowserContextsAndSources());
+ content::NotificationService::AllBrowserContextsAndSources());
registrar->Add(observer, chrome::NOTIFICATION_BROWSER_CLOSED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, content::NOTIFICATION_USER_ACTION,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, content::NOTIFICATION_TAB_PARENTED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, content::NOTIFICATION_TAB_CLOSING,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, content::NOTIFICATION_LOAD_START,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, content::NOTIFICATION_LOAD_STOP,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, content::NOTIFICATION_RENDERER_PROCESS_HANG,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, content::NOTIFICATION_CHILD_PROCESS_HOST_CONNECTED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, content::NOTIFICATION_CHILD_INSTANCE_CREATED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, content::NOTIFICATION_CHILD_PROCESS_CRASHED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, chrome::NOTIFICATION_OMNIBOX_OPENED_URL,
- NotificationService::AllSources());
+ content::NotificationService::AllSources());
registrar->Add(observer, chrome::NOTIFICATION_BOOKMARK_MODEL_LOADED,
- NotificationService::AllBrowserContextsAndSources());
+ content::NotificationService::AllBrowserContextsAndSources());
}
void MetricsService::Observe(int type,
@@ -1201,7 +1201,7 @@
int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
- if (details == NotificationService::NoDetails())
+ if (details == content::NotificationService::NoDetails())
return;
// TODO(jar): There is a bug causing this to be called too many times, and
« no previous file with comments | « chrome/browser/memory_purger.cc ('k') | chrome/browser/metrics/metrics_service_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698