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

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: adding owners (sky for chrome/browser/ui/tabs/tab_strip_model.cc, jam for changes in content/public… 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..f1d7035b7caf747bf6c38035d1e2b1c373d157a1 100644
--- a/chrome/browser/ui/tabs/tab_utils.cc
+++ b/chrome/browser/ui/tabs/tab_utils.cc
@@ -252,10 +252,12 @@ 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