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

Side by Side Diff: chrome/browser/media/router/discovery/dial/dial_media_sink_service_impl.cc

Issue 2916163002: [MediaRouter] Record DIAL device counts in DialMediaSinkServiceImpl (Closed)
Patch Set: resolve code review comments from Mark Created 3 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/discovery/dial/dial_media_sink_service_imp l.h" 5 #include "chrome/browser/media/router/discovery/dial/dial_media_sink_service_imp l.h"
6 6
7 #include "chrome/browser/media/router/discovery/dial/dial_device_data.h" 7 #include "chrome/browser/media/router/discovery/dial/dial_device_data.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 #include "net/url_request/url_request_context_getter.h" 10 #include "net/url_request/url_request_context_getter.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 MediaSinkServiceBase::RestartTimer(); 122 MediaSinkServiceBase::RestartTimer();
123 } 123 }
124 124
125 void DialMediaSinkServiceImpl::OnDeviceDescriptionError( 125 void DialMediaSinkServiceImpl::OnDeviceDescriptionError(
126 const DialDeviceData& device, 126 const DialDeviceData& device,
127 const std::string& error_message) { 127 const std::string& error_message) {
128 DCHECK_CURRENTLY_ON(BrowserThread::IO); 128 DCHECK_CURRENTLY_ON(BrowserThread::IO);
129 DVLOG(2) << "OnDescriptionFetchesError [message]: " << error_message; 129 DVLOG(2) << "OnDescriptionFetchesError [message]: " << error_message;
130 } 130 }
131 131
132 void DialMediaSinkServiceImpl::RecordDeviceCounts() {
133 metrics_.RecordDialDeviceCounts(current_sinks_.size(),
134 current_devices_.size());
135 }
136
132 } // namespace media_router 137 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698