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

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

Issue 1584573004: Remove Metro pinning, and relaunch menu items and strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 11 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_infobar_delegates.h ('k') | chrome/browser/plugins/plugin_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « chrome/browser/plugins/plugin_infobar_delegates.h ('k') | chrome/browser/plugins/plugin_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698