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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 817143006: Fix incorrect comparison with bitmask. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 41a767e7da3fe91aac8fa5579ed60d5240b79bb7..a1f733458b9693baf9d3397305e7ac51ec7ccb6b 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -997,7 +997,7 @@ void WebContentsImpl::NotifyNavigationStateChanged(
InvalidateTypes changed_flags) {
// Create and release the audio power save blocker depending on whether the
// tab is actively producing audio or not.
- if (changed_flags == INVALIDATE_TYPE_TAB &&
+ if ((changed_flags & INVALIDATE_TYPE_TAB) &&
AudioStreamMonitor::monitoring_available()) {
if (WasRecentlyAudible()) {
if (!audio_power_save_blocker_)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698