Index: components/metrics/metrics_log_base.h |
=================================================================== |
--- components/metrics/metrics_log_base.h (revision 271493) |
+++ components/metrics/metrics_log_base.h (working copy) |
@@ -70,7 +70,10 @@ |
// record. Must only be called after CloseLog() has been called. |
void GetEncodedLog(std::string* encoded_log); |
- int num_events() { return num_events_; } |
+ int num_events() const { |
+ return uma_proto_.omnibox_event_size() + |
+ uma_proto_.user_action_event_size(); |
+ } |
void set_hardware_class(const std::string& hardware_class) { |
uma_proto_.mutable_system_profile()->mutable_hardware()->set_hardware_class( |
@@ -87,9 +90,6 @@ |
return &uma_proto_; |
} |
- // TODO(isherman): Remove this once the XML pipeline is outta here. |
- int num_events_; // the number of events recorded in this log |
- |
private: |
// locked_ is true when record has been packed up for sending, and should |
// no longer be written to. It is only used for sanity checking and is |