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

Unified Diff: chrome/browser/ui/tabs/tab_utils.cc

Issue 1848663002: bluetooth: Remove indicator only when there are no more devices connected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Ref count connections Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/tabs/tab_utils.cc
diff --git a/chrome/browser/ui/tabs/tab_utils.cc b/chrome/browser/ui/tabs/tab_utils.cc
index ada42a7a3513a9edbc2935a0224c9de65b6faf97..8b835fb5ace6b0911325db5da976c4421f8e268c 100644
--- a/chrome/browser/ui/tabs/tab_utils.cc
+++ b/chrome/browser/ui/tabs/tab_utils.cc
@@ -159,7 +159,7 @@ TabMediaState GetTabMediaStateForContents(content::WebContents* contents) {
return TAB_MEDIA_STATE_RECORDING;
}
- if (contents->IsBluetoothDeviceConnected())
+ if (contents->IsConnectedToBluetoothDevice())
return TAB_MEDIA_STATE_BLUETOOTH_CONNECTED;
if (contents->IsAudioMuted())

Powered by Google App Engine
This is Rietveld 408576698