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

Unified Diff: chrome/browser/ui/content_settings/content_setting_bubble_model.cc

Issue 972733003: Web MIDI: reset button in permission bubble does not work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: chrome/browser/ui/content_settings/content_setting_bubble_model.cc
diff --git a/chrome/browser/ui/content_settings/content_setting_bubble_model.cc b/chrome/browser/ui/content_settings/content_setting_bubble_model.cc
index 0df4fa7192b81090f7492baf8882b28b7a5d56c6..23c1275dc23e89a735e617ad393253c835bc37dd 100644
--- a/chrome/browser/ui/content_settings/content_setting_bubble_model.cc
+++ b/chrome/browser/ui/content_settings/content_setting_bubble_model.cc
@@ -1199,6 +1199,7 @@ void ContentSettingMidiSysExBubbleModel::OnCustomLinkClicked() {
return;
// Reset this embedder's entry to default for each of the requesting
// origins currently on the page.
+ const GURL& embedder_url = web_contents()->GetURL();
TabSpecificContentSettings* content_settings =
TabSpecificContentSettings::FromWebContents(web_contents());
const ContentSettingsUsagesState::StateMap& state_map =
@@ -1210,7 +1211,7 @@ void ContentSettingMidiSysExBubbleModel::OnCustomLinkClicked() {
state_map.begin(); it != state_map.end(); ++it) {
settings_map->SetContentSetting(
ContentSettingsPattern::FromURLNoWildcard(it->first),
- ContentSettingsPattern::Wildcard(),
+ ContentSettingsPattern::FromURLNoWildcard(embedder_url),
CONTENT_SETTINGS_TYPE_MIDI_SYSEX,
std::string(),
CONTENT_SETTING_DEFAULT);
« 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