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

Side by Side Diff: metrics_daemon.cc

Issue 2767003: Fixed KDBusMatches bug. (Closed) Base URL: ssh://gitrw.chromium.org/metrics.git
Patch Set: Created 10 years, 6 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 | « no previous file | no next file » | 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 "metrics_daemon.h" 5 #include "metrics_daemon.h"
6 6
7 #include <dbus/dbus-glib-lowlevel.h> 7 #include <dbus/dbus-glib-lowlevel.h>
8 #include <sys/file.h> 8 #include <sys/file.h>
9 9
10 #include <base/eintr_wrapper.h> 10 #include <base/eintr_wrapper.h>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // static 55 // static
56 const char* MetricsDaemon::kDBusMatches_[] = { 56 const char* MetricsDaemon::kDBusMatches_[] = {
57 "type='signal'," 57 "type='signal',"
58 "sender='org.chromium.flimflam'," 58 "sender='org.chromium.flimflam',"
59 "interface='" DBUS_IFACE_FLIMFLAM_MANAGER "'," 59 "interface='" DBUS_IFACE_FLIMFLAM_MANAGER "',"
60 "path='/'," 60 "path='/',"
61 "member='StateChanged'", 61 "member='StateChanged'",
62 62
63 "type='signal'," 63 "type='signal',"
64 "interface='" DBUS_IFACE_POWER_MANAGER "'," 64 "interface='" DBUS_IFACE_POWER_MANAGER "',"
65 "path='/'" 65 "path='/'",
66 66
67 "type='signal'," 67 "type='signal',"
68 "sender='org.chromium.SessionManager'," 68 "sender='org.chromium.SessionManager',"
69 "interface='" DBUS_IFACE_SESSION_MANAGER "'," 69 "interface='" DBUS_IFACE_SESSION_MANAGER "',"
70 "path='/org/chromium/SessionManager'," 70 "path='/org/chromium/SessionManager',"
71 "member='SessionStateChanged'", 71 "member='SessionStateChanged'",
72 }; 72 };
73 73
74 // static 74 // static
75 const char* MetricsDaemon::kNetworkStates_[] = { 75 const char* MetricsDaemon::kNetworkStates_[] = {
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 usemon_source_ = NULL; 421 usemon_source_ = NULL;
422 usemon_interval_ = 0; 422 usemon_interval_ = 0;
423 } 423 }
424 424
425 void MetricsDaemon::SendMetric(const std::string& name, int sample, 425 void MetricsDaemon::SendMetric(const std::string& name, int sample,
426 int min, int max, int nbuckets) { 426 int min, int max, int nbuckets) {
427 DLOG(INFO) << "received metric: " << name << " " << sample << " " 427 DLOG(INFO) << "received metric: " << name << " " << sample << " "
428 << min << " " << max << " " << nbuckets; 428 << min << " " << max << " " << nbuckets;
429 metrics_lib_->SendToUMA(name, sample, min, max, nbuckets); 429 metrics_lib_->SendToUMA(name, sample, min, max, nbuckets);
430 } 430 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698