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

Side by Side Diff: src/platform/metrics/metrics_daemon.cc

Issue 1650006: Unify metrics_collection and metrics_daemon into metrics. (Closed)
Patch Set: PTAL -- further cleanup based on the ebuild cleanup. Created 10 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 unified diff | Download patch
« no previous file with comments | « src/platform/metrics/metrics_daemon.h ('k') | src/platform/metrics/metrics_daemon_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/metrics_daemon/metrics_daemon.h" 5 #include "metrics_daemon.h"
6 #include "metrics_library.h"
6 7
7 #include <glib-object.h> 8 #include <glib-object.h>
8 #include <metrics_library.h>
9 9
10 extern "C" { 10 extern "C" {
11 #include "marshal_void__string_boxed.h" 11 #include "marshal_void__string_boxed.h"
12 } 12 }
13 13
14 #include <base/logging.h> 14 #include <base/logging.h>
15 15
16 #define SAFE_MESSAGE(e) ((e && e->message) ? e->message : "unknown error") 16 #define SAFE_MESSAGE(e) ((e && e->message) ? e->message : "unknown error")
17 17
18 MetricsDaemon::NetworkState 18 MetricsDaemon::NetworkState
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return static_cast<NetworkStateId>(-1); 135 return static_cast<NetworkStateId>(-1);
136 } 136 }
137 137
138 void MetricsDaemon::ChromePublishMetric(const char* name, const char* value) { 138 void MetricsDaemon::ChromePublishMetric(const char* name, const char* value) {
139 MetricsLibrary::SendToChrome(name, value); 139 MetricsLibrary::SendToChrome(name, value);
140 } 140 }
141 141
142 void MetricsDaemon::TestPublishMetric(const char* name, const char* value) { 142 void MetricsDaemon::TestPublishMetric(const char* name, const char* value) {
143 LOG(INFO) << "received metric: " << name << " " << value; 143 LOG(INFO) << "received metric: " << name << " " << value;
144 } 144 }
OLDNEW
« no previous file with comments | « src/platform/metrics/metrics_daemon.h ('k') | src/platform/metrics/metrics_daemon_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698