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

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: 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..8e8395aeccb27913a7ea0237531694a3f2a3fafd 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
@@ -831,7 +831,7 @@ 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), "user");
miu 2014/12/05 23:46:48 Instead of passing "user" as a cause, it's best to
Jared Sohn 2014/12/07 22:39:45 I also need access to this constant from chrome/br
miu 2014/12/09 01:56:24 The way you did it is the preferred way, with one
}
// Called when the user closes a tab. Asks the model to close the tab. |sender|

Powered by Google App Engine
This is Rietveld 408576698