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

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

Issue 12039079: content: convert user action notification to observer usage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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/extensions/api/metrics/metrics_apitest.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_service.h
diff --git a/chrome/browser/metrics/metrics_service.h b/chrome/browser/metrics/metrics_service.h
index 08c6080ef18365746e63964e9864e1aa1c4f89c7..4c92a43c21567598c3710d9dd3c5893d20943e07 100644
--- a/chrome/browser/metrics/metrics_service.h
+++ b/chrome/browser/metrics/metrics_service.h
@@ -24,6 +24,7 @@
#include "chrome/installer/util/google_update_settings.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
+#include "content/public/browser/user_metrics.h"
#include "net/url_request/url_fetcher_delegate.h"
#if defined(OS_CHROMEOS)
@@ -234,6 +235,8 @@ class MetricsService
void OnInitTaskGotGoogleUpdateData(
const GoogleUpdateMetrics& google_update_metrics);
+ void OnUserAction(const std::string& action);
+
// TrackingSynchronizerObserver:
virtual void ReceivedProfilerData(
const tracked_objects::ProcessDataSnapshot& process_data,
@@ -386,9 +389,7 @@ class MetricsService
const content::NotificationDetails& details);
// Checks whether a notification can be logged.
- bool CanLogNotification(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details);
+ bool CanLogNotification();
// Sets the value of the specified path in prefs and schedules a save.
void RecordBooleanPrefValue(const char* path, bool value);
@@ -397,6 +398,8 @@ class MetricsService
// process, and false otherwise.
static bool IsPluginProcess(content::ProcessType type);
+ content::ActionCallback action_callback_;
+
content::NotificationRegistrar registrar_;
// Indicate whether recording and reporting are currently happening.
« no previous file with comments | « chrome/browser/extensions/api/metrics/metrics_apitest.cc ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698