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

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

Issue 11066043: Block NPAPI plug-ins in Metro mode instead of not loading them at all. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 2 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 | « chrome/browser/plugins/plugin_finder.cc ('k') | chrome/browser/plugins/plugin_infobar_delegates.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 85fa1597938292b5d747b55be39ba6ad8a7ba515..b7cea2e8803745b44a104ced3f91a150bc86f302 100644
--- a/chrome/browser/plugins/plugin_infobar_delegates.h
+++ b/chrome/browser/plugins/plugin_infobar_delegates.h
@@ -185,11 +185,10 @@ class PluginMetroModeInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
// Shows an infobar asking the user to switch to desktop chrome if they
// want to use the plugin.
- static InfoBarDelegate* Create(InfoBarService* infobar_service,
- const string16& plugin_name);
- private:
PluginMetroModeInfoBarDelegate(InfoBarService* infobar_service,
- const string16& message);
+ const string16& plugin_name,
+ const string16& ok_label);
+ private:
virtual ~PluginMetroModeInfoBarDelegate();
// ConfirmInfoBarDelegate:
@@ -202,6 +201,7 @@ class PluginMetroModeInfoBarDelegate : public ConfirmInfoBarDelegate {
virtual bool LinkClicked(WindowOpenDisposition disposition) OVERRIDE;
string16 message_;
+ string16 ok_label_;
DISALLOW_COPY_AND_ASSIGN(PluginMetroModeInfoBarDelegate);
};
« no previous file with comments | « chrome/browser/plugins/plugin_finder.cc ('k') | chrome/browser/plugins/plugin_infobar_delegates.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698