commit | 97ee2f8beaac4cf737bc93f56b0c23cd9bce7c15 | [log] [tgz] |
---|---|---|
author | Tommy Steimel <[email protected]> | Wed Nov 01 21:39:52 2017 |
committer | Commit Bot <[email protected]> | Wed Nov 01 21:39:52 2017 |
tree | e0e46052ae14764817e099d2696c0299f1054e93 | |
parent | 9bb471d03530b7fb67b9ee2171280e56dac67928 [diff] [blame] |
Dont show the reload interstitial when muting a website Bug: 776318 Change-Id: I00307ea4f9cf44c71f21a1311e35b5b6a9ea167d Reviewed-on: https://chromium-review.googlesource.com/731268 Reviewed-by: Mounir Lamouri <[email protected]> Reviewed-by: Lucas Garron <[email protected]> Commit-Queue: Tommy Steimel <[email protected]> Cr-Commit-Position: refs/heads/master@{#513281}
diff --git a/chrome/browser/ui/page_info/page_info.cc b/chrome/browser/ui/page_info/page_info.cc index 861c923..a993285 100644 --- a/chrome/browser/ui/page_info/page_info.cc +++ b/chrome/browser/ui/page_info/page_info.cc
@@ -431,7 +431,9 @@ content_settings_->SetNarrowestContentSetting(site_url_, site_url_, type, setting); - show_info_bar_ = true; + // When the sound setting is changed, no reload is necessary. + if (type != CONTENT_SETTINGS_TYPE_SOUND) + show_info_bar_ = true; // Refresh the UI to reflect the new setting. PresentSitePermissions();