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 2acc49698b1cf1f11cbe5ec009093b2ccdbdab24..16277600014bda5aedd97dc91ab21116f7165c93 100644 |
--- a/chrome/browser/ui/content_settings/content_setting_bubble_model.cc |
+++ b/chrome/browser/ui/content_settings/content_setting_bubble_model.cc |
@@ -95,6 +95,7 @@ ContentSettingTitleAndLinkModel::ContentSettingTitleAndLinkModel( |
DCHECK_NE(content_type, CONTENT_SETTINGS_TYPE_NOTIFICATIONS); |
SetTitle(); |
SetManageLink(); |
+ SetLearnMoreLink(); |
} |
void ContentSettingTitleAndLinkModel::SetTitle() { |
@@ -156,6 +157,22 @@ void ContentSettingTitleAndLinkModel::OnManageLinkClicked() { |
delegate_->ShowContentSettingsPage(content_type()); |
} |
+void ContentSettingTitleAndLinkModel::SetLearnMoreLink() { |
+ static const ContentSettingsTypeIdEntry kLearnMoreIDs[] = { |
+ {CONTENT_SETTINGS_TYPE_PLUGINS, IDS_LEARN_MORE}, |
+ }; |
+ int learn_more_id = |
+ GetIdForContentType(kLearnMoreIDs, arraysize(kLearnMoreIDs), |
+ content_type()); |
+ if (learn_more_id) |
+ set_learn_more_link(l10n_util::GetStringUTF8(learn_more_id)); |
+} |
+ |
+void ContentSettingTitleAndLinkModel::OnLearnMoreLinkClicked() { |
+ if (delegate_) |
+ delegate_->ShowLearnMorePage(content_type()); |
+} |
+ |
class ContentSettingTitleLinkAndCustomModel |
: public ContentSettingTitleAndLinkModel { |
public: |