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

Unified Diff: chrome/browser/metrics/metrics_service.cc

Issue 10079023: Move notifications used only in chrome/ out of content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: six! Created 8 years, 8 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/metrics/metrics_service.cc
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index 8fb2d083ed78fbd5b78cc7998256d0653cb8593c..9fc36d0e1426054195b69b3d67cbe49cb6b5915e 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -499,9 +499,9 @@ void MetricsService::SetUpNotifications(
content::NotificationService::AllSources());
registrar->Add(observer, content::NOTIFICATION_USER_ACTION,
content::NotificationService::AllSources());
- registrar->Add(observer, content::NOTIFICATION_TAB_PARENTED,
+ registrar->Add(observer, chrome::NOTIFICATION_TAB_PARENTED,
content::NotificationService::AllSources());
- registrar->Add(observer, content::NOTIFICATION_TAB_CLOSING,
+ registrar->Add(observer, chrome::NOTIFICATION_TAB_CLOSING,
content::NotificationService::AllSources());
registrar->Add(observer, content::NOTIFICATION_LOAD_START,
content::NotificationService::AllSources());
@@ -545,8 +545,8 @@ void MetricsService::Observe(int type,
LogWindowChange(type, source, details);
break;
- case content::NOTIFICATION_TAB_PARENTED:
- case content::NOTIFICATION_TAB_CLOSING:
+ case chrome::NOTIFICATION_TAB_PARENTED:
+ case chrome::NOTIFICATION_TAB_CLOSING:
LogWindowChange(type, source, details);
break;
@@ -1311,12 +1311,12 @@ void MetricsService::LogWindowChange(
DCHECK_NE(controller_id, -1);
switch (type) {
- case content::NOTIFICATION_TAB_PARENTED:
+ case chrome::NOTIFICATION_TAB_PARENTED:
case chrome::NOTIFICATION_BROWSER_OPENED:
window_type = MetricsLog::WINDOW_CREATE;
break;
- case content::NOTIFICATION_TAB_CLOSING:
+ case chrome::NOTIFICATION_TAB_CLOSING:
case chrome::NOTIFICATION_BROWSER_CLOSED:
window_map_.erase(window_map_.find(window_or_tab));
window_type = MetricsLog::WINDOW_DESTROY;

Powered by Google App Engine
This is Rietveld 408576698