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

Unified Diff: chrome/browser/ui/tabs/tab_strip_model.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: Remove mute->muted renames Created 5 years, 11 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_strip_model.cc
diff --git a/chrome/browser/ui/tabs/tab_strip_model.cc b/chrome/browser/ui/tabs/tab_strip_model.cc
index 5fa230a0174e3ee1b4c84045ade31f89bf38709b..b8c3f42160e049c19faf0cede61640b49a5bf2a5 100644
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
@@ -1045,7 +1045,8 @@ void TabStripModel::ExecuteContextMenuCommand(
content::RecordAction(UserMetricsAction("TabContextMenu_UnmuteTabs"));
for (std::vector<int>::const_iterator i = indices.begin();
i != indices.end(); ++i) {
- chrome::SetTabAudioMuted(GetWebContentsAt(*i), mute);
+ chrome::SetTabAudioMuted(GetWebContentsAt(*i), muted,
+ chrome::kMutedToggleCauseUser);
}
break;
}

Powered by Google App Engine
This is Rietveld 408576698