OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium 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 "google_apis/gcm/monitoring/gcm_stats_recorder_impl.h" | 5 #include "components/gcm_driver/gcm_stats_recorder_impl.h" |
6 | 6 |
7 #include <deque> | 7 #include <deque> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 | 15 |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 const std::string& receiver_id, | 460 const std::string& receiver_id, |
461 const std::string& message_id) { | 461 const std::string& message_id) { |
462 UMA_HISTOGRAM_COUNTS("GCM.IncomingSendErrors", 1); | 462 UMA_HISTOGRAM_COUNTS("GCM.IncomingSendErrors", 1); |
463 if (!is_recording_) | 463 if (!is_recording_) |
464 return; | 464 return; |
465 RecordSending(app_id, receiver_id, message_id, "Received 'send error' msg", | 465 RecordSending(app_id, receiver_id, message_id, "Received 'send error' msg", |
466 std::string()); | 466 std::string()); |
467 } | 467 } |
468 | 468 |
469 } // namespace gcm | 469 } // namespace gcm |
OLD | NEW |