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

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

Issue 757033005: Make tab audible and muted states and cause available for an extension API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 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 a61996701309b28c8d94d985247a30ef396d64ae..fe11dac8133907a4c97c7584dc0318d8582ce485 100644
--- a/chrome/browser/ui/tabs/tab_utils.cc
+++ b/chrome/browser/ui/tabs/tab_utils.cc
@@ -252,10 +252,10 @@ bool CanToggleAudioMute(content::WebContents* contents) {
return false;
}
-void SetTabAudioMuted(content::WebContents* contents, bool mute) {
+void SetTabAudioMuted(content::WebContents* contents, bool muted, const std::string& cause) {
if (!contents || !chrome::CanToggleAudioMute(contents))
return;
- contents->SetAudioMuted(mute);
+ contents->SetAudioMuted(muted, cause);
}
bool IsTabAudioMuted(content::WebContents* contents) {

Powered by Google App Engine
This is Rietveld 408576698