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

Unified Diff: chrome/browser/plugins/plugin_infobar_delegates.h

Issue 801053003: Never display unauthorized plugin info bar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove a header file Created 6 years 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: chrome/browser/plugins/plugin_infobar_delegates.h
diff --git a/chrome/browser/plugins/plugin_infobar_delegates.h b/chrome/browser/plugins/plugin_infobar_delegates.h
index e5ff2113bac01effff2c5a6f7411790eb67ceafc..d817c2c6f42adbba541748728b733f74ba251b6a 100644
--- a/chrome/browser/plugins/plugin_infobar_delegates.h
+++ b/chrome/browser/plugins/plugin_infobar_delegates.h
@@ -44,37 +44,6 @@ class PluginInfoBarDelegate : public ConfirmInfoBarDelegate {
DISALLOW_COPY_AND_ASSIGN(PluginInfoBarDelegate);
};
-// Infobar that's shown when a plug-in requires user authorization to run.
-class UnauthorizedPluginInfoBarDelegate : public PluginInfoBarDelegate {
- public:
- // Creates an unauthorized plugin infobar and delegate and adds the infobar to
- // |infobar_service|.
- static void Create(InfoBarService* infobar_service,
- HostContentSettingsMap* content_settings,
- const base::string16& name,
- const std::string& identifier);
-
- private:
- UnauthorizedPluginInfoBarDelegate(HostContentSettingsMap* content_settings,
- const base::string16& name,
- const std::string& identifier);
- ~UnauthorizedPluginInfoBarDelegate() override;
-
- // PluginInfoBarDelegate:
- base::string16 GetMessageText() const override;
- base::string16 GetButtonLabel(InfoBarButton button) const override;
- bool Accept() override;
- bool Cancel() override;
- void InfoBarDismissed() override;
- bool LinkClicked(WindowOpenDisposition disposition) override;
- std::string GetLearnMoreURL() const override;
-
- HostContentSettingsMap* content_settings_;
- base::string16 name_;
-
- DISALLOW_COPY_AND_ASSIGN(UnauthorizedPluginInfoBarDelegate);
-};
-
#if defined(ENABLE_PLUGIN_INSTALLATION)
// Infobar that's shown when a plug-in is out of date.
class OutdatedPluginInfoBarDelegate : public PluginInfoBarDelegate,
« no previous file with comments | « chrome/browser/plugins/npapi_infobar_browsertest.cc ('k') | chrome/browser/plugins/plugin_infobar_delegates.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698