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

Side by Side Diff: chrome/browser/android/tab_web_contents_delegate_android.cc

Issue 2577183002: Add UMA for the number of devices in the chooser when a device is paired (Closed)
Patch Set: address comments Created 4 years 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/android/tab_web_contents_delegate_android.h" 5 #include "chrome/browser/android/tab_web_contents_delegate_android.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 void TabWebContentsDelegateAndroid::RunFileChooser( 121 void TabWebContentsDelegateAndroid::RunFileChooser(
122 content::RenderFrameHost* render_frame_host, 122 content::RenderFrameHost* render_frame_host,
123 const FileChooserParams& params) { 123 const FileChooserParams& params) {
124 FileSelectHelper::RunFileChooser(render_frame_host, params); 124 FileSelectHelper::RunFileChooser(render_frame_host, params);
125 } 125 }
126 126
127 std::unique_ptr<BluetoothChooser> 127 std::unique_ptr<BluetoothChooser>
128 TabWebContentsDelegateAndroid::RunBluetoothChooser( 128 TabWebContentsDelegateAndroid::RunBluetoothChooser(
129 content::RenderFrameHost* frame, 129 content::RenderFrameHost* frame,
130 const BluetoothChooser::EventHandler& event_handler) { 130 const BluetoothChooser::EventHandler& event_handler,
131 bool accept_all_devices) {
131 return base::MakeUnique<BluetoothChooserAndroid>(frame, event_handler); 132 return base::MakeUnique<BluetoothChooserAndroid>(frame, event_handler);
132 } 133 }
133 134
134 void TabWebContentsDelegateAndroid::CloseContents( 135 void TabWebContentsDelegateAndroid::CloseContents(
135 WebContents* web_contents) { 136 WebContents* web_contents) {
136 // Prevent dangling registrations assigned to closed web contents. 137 // Prevent dangling registrations assigned to closed web contents.
137 if (notification_registrar_.IsRegistered(this, 138 if (notification_registrar_.IsRegistered(this,
138 chrome::NOTIFICATION_FIND_RESULT_AVAILABLE, 139 chrome::NOTIFICATION_FIND_RESULT_AVAILABLE,
139 content::Source<WebContents>(web_contents))) { 140 content::Source<WebContents>(web_contents))) {
140 notification_registrar_.Remove(this, 141 notification_registrar_.Remove(this,
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 void NotifyStopped(JNIEnv* env, 479 void NotifyStopped(JNIEnv* env,
479 const JavaParamRef<jclass>& clazz, 480 const JavaParamRef<jclass>& clazz,
480 const JavaParamRef<jobject>& java_web_contents) { 481 const JavaParamRef<jobject>& java_web_contents) {
481 content::WebContents* web_contents = 482 content::WebContents* web_contents =
482 content::WebContents::FromJavaWebContents(java_web_contents); 483 content::WebContents::FromJavaWebContents(java_web_contents);
483 scoped_refptr<MediaStreamCaptureIndicator> indicator = 484 scoped_refptr<MediaStreamCaptureIndicator> indicator =
484 MediaCaptureDevicesDispatcher::GetInstance() 485 MediaCaptureDevicesDispatcher::GetInstance()
485 ->GetMediaStreamCaptureIndicator(); 486 ->GetMediaStreamCaptureIndicator();
486 indicator->NotifyStopped(web_contents); 487 indicator->NotifyStopped(web_contents);
487 } 488 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698