OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |