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

Side by Side Diff: chrome/browser/media/router/mojo/media_router_mojo_impl.cc

Issue 2894623002: [Media Router] Add UMA metrics for media route controller creation (Closed)
Patch Set: Created 3 years, 7 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 | chrome/browser/media/router/mojo/media_router_mojo_metrics.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/router/mojo/media_router_mojo_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698