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

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

Issue 12082090: [net] Add WifiPhyMode to SystemProfile (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: sync 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 | « no previous file | chrome/browser/metrics/metrics_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_log.h
diff --git a/chrome/browser/metrics/metrics_log.h b/chrome/browser/metrics/metrics_log.h
index 3c6ae45bc9633121e6b93924d749bfe10a82bfc0..def5887a53e98de68b25bc7c9b100533afa39a18 100644
--- a/chrome/browser/metrics/metrics_log.h
+++ b/chrome/browser/metrics/metrics_log.h
@@ -12,6 +12,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "chrome/browser/metrics/metrics_network_observer.h"
#include "chrome/common/metrics/metrics_log_base.h"
#include "chrome/installer/util/google_update_settings.h"
#include "content/public/common/process_type.h"
@@ -22,6 +23,7 @@
#endif
struct AutocompleteLog;
+class MetricsNetworkObserver;
class PrefService;
class PrefRegistrySimple;
@@ -145,8 +147,6 @@ class MetricsLog : public MetricsLogBase {
private:
FRIEND_TEST_ALL_PREFIXES(MetricsLogTest, ChromeOSStabilityData);
- class NetworkObserver;
-
// Writes application stability metrics (as part of the profile log).
// NOTE: Has the side-effect of clearing those counts.
void WriteStabilityElement(
@@ -190,9 +190,9 @@ class MetricsLog : public MetricsLogBase {
// This is a no-op if called on a non-Windows platform.
void WriteGoogleUpdateProto(const GoogleUpdateMetrics& google_update_metrics);
- // Registers as observer with net::NetworkChangeNotifier and keeps track of
- // the network environment.
- scoped_ptr<NetworkObserver> network_observer_;
+ // Observes network state to provide values for SystemProfile::Network.
+ MetricsNetworkObserver network_observer_;
+
#if defined(OS_CHROMEOS)
metrics::PerfProvider perf_provider_;
#endif
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698