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

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

Issue 2626843006: Plugins: Remove left over references to chrome://plugins (Closed)
Patch Set: Created 3 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_observer.h ('k') | chrome/browser/ui/webui/bidi_checker_web_ui_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugin_observer.cc
diff --git a/chrome/browser/plugins/plugin_observer.cc b/chrome/browser/plugins/plugin_observer.cc
index 26ceae8303325cbe5880bdb9d50c1576ec5badcf..82c9555f5964aade2dc70f5ac2e1271a1264f612 100644
--- a/chrome/browser/plugins/plugin_observer.cc
+++ b/chrome/browser/plugins/plugin_observer.cc
@@ -23,7 +23,6 @@
#include "chrome/browser/ui/tab_modal_confirm_dialog.h"
#include "chrome/common/features.h"
#include "chrome/common/render_messages.h"
-#include "chrome/common/url_constants.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/theme_resources.h"
#include "components/component_updater/component_updater_service.h"
@@ -49,10 +48,7 @@
#include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h"
#endif // BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
-using content::OpenURLParams;
using content::PluginService;
-using content::Referrer;
-using content::WebContents;
DEFINE_WEB_CONTENTS_USER_DATA_KEY(PluginObserver);
@@ -366,8 +362,6 @@ bool PluginObserver::OnMessageReceived(
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_RemovePluginPlaceholderHost,
OnRemovePluginPlaceholderHost)
#endif
- IPC_MESSAGE_HANDLER(ChromeViewHostMsg_OpenAboutPlugins,
- OnOpenAboutPlugins)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_ShowFlashPermissionBubble,
OnShowFlashPermissionBubble)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_CouldNotLoadPlugin,
@@ -429,17 +423,6 @@ void PluginObserver::OnRemovePluginPlaceholderHost(int placeholder_id) {
}
#endif // BUILDFLAG(ENABLE_PLUGIN_INSTALLATION)
-void PluginObserver::OnOpenAboutPlugins() {
- web_contents()->OpenURL(
- OpenURLParams(GURL(chrome::kChromeUIPluginsURL),
- content::Referrer::SanitizeForRequest(
- GURL(chrome::kChromeUIPluginsURL),
- content::Referrer(web_contents()->GetURL(),
- blink::WebReferrerPolicyDefault)),
- WindowOpenDisposition::NEW_FOREGROUND_TAB,
- ui::PAGE_TRANSITION_AUTO_BOOKMARK, false));
-}
-
void PluginObserver::OnShowFlashPermissionBubble() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
« no previous file with comments | « chrome/browser/plugins/plugin_observer.h ('k') | chrome/browser/ui/webui/bidi_checker_web_ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698