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

Unified Diff: content/browser/web_contents/web_contents_impl.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: Better webcontents_impl decoupling 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: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 5ec31a02c05612ac3f3807e8b0e0ed9d560352f4..0f77b40bb78964c1d21e8b0ebe7a8efe9d055f85 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -949,14 +949,14 @@ bool WebContentsImpl::IsAudioMuted() const {
return audio_muter_.get() && audio_muter_->is_muting();
}
-void WebContentsImpl::SetAudioMuted(bool mute) {
- DVLOG(1) << "SetAudioMuted(mute=" << mute << "), was " << IsAudioMuted()
- << " for WebContentsImpl@" << this;
+void WebContentsImpl::SetAudioMuted(bool muted) {
+ DVLOG(1) << "SetAudioMuted(muted=" << muted
+ << "), was " << IsAudioMuted() << " for WebContentsImpl@" << this;
- if (mute == IsAudioMuted())
+ if (muted == IsAudioMuted())
return;
- if (mute) {
+ if (muted) {
if (!audio_muter_)
audio_muter_.reset(new WebContentsAudioMuter(this));
audio_muter_->StartMuting();

Powered by Google App Engine
This is Rietveld 408576698