Index: chrome/browser/plugins/plugin_infobar_delegates.cc |
diff --git a/chrome/browser/plugins/plugin_infobar_delegates.cc b/chrome/browser/plugins/plugin_infobar_delegates.cc |
index 2c457c062fab23b26698d5897cee3ff94c273b04..95892d2f5ac3b34b1f126f5e5abfd55bb6656439 100644 |
--- a/chrome/browser/plugins/plugin_infobar_delegates.cc |
+++ b/chrome/browser/plugins/plugin_infobar_delegates.cc |
@@ -211,84 +211,4 @@ void OutdatedPluginInfoBarDelegate::Replace( |
installer, plugin_metadata.Pass(), message)))); |
} |
-#if defined(OS_WIN) |
- |
-// PluginMetroModeInfoBarDelegate --------------------------------------------- |
- |
-// static |
-void PluginMetroModeInfoBarDelegate::Create( |
- InfoBarService* infobar_service, |
- PluginMetroModeInfoBarDelegate::Mode mode, |
- const base::string16& name) { |
- infobar_service->AddInfoBar( |
- infobar_service->CreateConfirmInfoBar(scoped_ptr<ConfirmInfoBarDelegate>( |
- new PluginMetroModeInfoBarDelegate(mode, name)))); |
-} |
- |
-PluginMetroModeInfoBarDelegate::PluginMetroModeInfoBarDelegate( |
- PluginMetroModeInfoBarDelegate::Mode mode, |
- const base::string16& name) |
- : ConfirmInfoBarDelegate(), |
- mode_(mode), |
- name_(name) { |
-} |
- |
-PluginMetroModeInfoBarDelegate::~PluginMetroModeInfoBarDelegate() { |
-} |
- |
-infobars::InfoBarDelegate::InfoBarIdentifier |
-PluginMetroModeInfoBarDelegate::GetIdentifier() const { |
- return PLUGIN_METRO_MODE_INFOBAR_DELEGATE; |
-} |
- |
-int PluginMetroModeInfoBarDelegate::GetIconId() const { |
- return IDR_INFOBAR_PLUGIN_INSTALL; |
-} |
- |
-base::string16 PluginMetroModeInfoBarDelegate::GetMessageText() const { |
- return l10n_util::GetStringFUTF16((mode_ == MISSING_PLUGIN) ? |
- IDS_METRO_MISSING_PLUGIN_PROMPT : IDS_METRO_NPAPI_PLUGIN_PROMPT, name_); |
-} |
- |
-int PluginMetroModeInfoBarDelegate::GetButtons() const { |
- return BUTTON_OK; |
-} |
- |
-base::string16 PluginMetroModeInfoBarDelegate::GetButtonLabel( |
- InfoBarButton button) const { |
- return l10n_util::GetStringUTF16(IDS_WIN_DESKTOP_RESTART); |
-} |
- |
-void LaunchDesktopInstanceHelper(const base::string16& url) { |
- base::FilePath exe_path; |
- if (!PathService::Get(base::FILE_EXE, &exe_path)) |
- return; |
- base::FilePath shortcut_path( |
- ShellIntegration::GetStartMenuShortcut(exe_path)); |
- |
- // Actually launching the process needs to happen in the metro viewer, |
- // otherwise it won't automatically transition to desktop. So we have |
- // to send an IPC to the viewer to do the ShellExecute. |
- aura::RemoteWindowTreeHostWin::Instance()->HandleOpenURLOnDesktop( |
- shortcut_path, url); |
-} |
- |
-bool PluginMetroModeInfoBarDelegate::Accept() { |
- // TODO(scottmg): Remove this entire class http://crbug.com/558054. |
- return true; |
-} |
- |
-base::string16 PluginMetroModeInfoBarDelegate::GetLinkText() const { |
- return l10n_util::GetStringUTF16(IDS_LEARN_MORE); |
-} |
- |
-GURL PluginMetroModeInfoBarDelegate::GetLinkURL() const { |
- return GURL( |
- (mode_ == MISSING_PLUGIN) |
- ? "https://support.google.com/chrome/?p=ib_display_in_desktop" |
- : "https://support.google.com/chrome/?p=ib_redirect_to_desktop"); |
-} |
- |
-#endif // defined(OS_WIN) |
- |
#endif // defined(ENABLE_PLUGIN_INSTALLATION) |