OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/media/router/mojo/media_router_mojo_impl.h" | 5 #include "chrome/browser/media/router/mojo/media_router_mojo_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 } else { | 1092 } else { |
1093 it->second->Invalidate(); | 1093 it->second->Invalidate(); |
1094 it = route_controllers_.erase(it); | 1094 it = route_controllers_.erase(it); |
1095 } | 1095 } |
1096 } | 1096 } |
1097 } | 1097 } |
1098 | 1098 |
1099 void MediaRouterMojoImpl::OnMediaControllerCreated( | 1099 void MediaRouterMojoImpl::OnMediaControllerCreated( |
1100 const MediaRoute::Id& route_id, | 1100 const MediaRoute::Id& route_id, |
1101 bool success) { | 1101 bool success) { |
1102 // TODO(takumif): Record success/failure with UMA. | |
1103 DVLOG_WITH_INSTANCE(1) << "OnMediaControllerCreated: " << route_id | 1102 DVLOG_WITH_INSTANCE(1) << "OnMediaControllerCreated: " << route_id |
1104 << (success ? " was successful." : " failed."); | 1103 << (success ? " was successful." : " failed."); |
| 1104 MediaRouterMojoMetrics::RecordMediaRouteControllerCreationResult(success); |
1105 } | 1105 } |
1106 | 1106 |
1107 } // namespace media_router | 1107 } // namespace media_router |
OLD | NEW |