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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm

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/cocoa/tabs/tab_strip_controller.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
index 1489c29da0204d1d1cd24454bbda8adeff1d555e..378c6b5a4785d33bf92034a848de6009df1d391f 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
@@ -831,7 +831,9 @@ NSImage* Overlay(NSImage* ground, NSImage* overlay, CGFloat alpha) {
if (!tabStripModel_->ContainsIndex(index))
return;
WebContents* contents = tabStripModel_->GetWebContentsAt(index);
- chrome::SetTabAudioMuted(contents, !chrome::IsTabAudioMuted(contents));
+ chrome::SetTabAudioMuted(contents,
+ !chrome::IsTabAudioMuted(contents),
+ chrome::kUserMuteToggleCause);
}
// Called when the user closes a tab. Asks the model to close the tab. |sender|

Powered by Google App Engine
This is Rietveld 408576698