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

Unified Diff: chrome/browser/external_tab_container_win.cc

Issue 8574019: browser: Delete ExternalTabPageInfoBubbleView class as it's now dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm google_util.h include Created 9 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/external_tab_container_win.cc
diff --git a/chrome/browser/external_tab_container_win.cc b/chrome/browser/external_tab_container_win.cc
index 6e309d1794ed2232ffa9e01f460410be6e07a735..9f7ea32e0641862f9fe7262b215dd612a699d89e 100644
--- a/chrome/browser/external_tab_container_win.cc
+++ b/chrome/browser/external_tab_container_win.cc
@@ -17,7 +17,6 @@
#include "chrome/browser/automation/automation_provider.h"
#include "chrome/browser/debugger/devtools_toggle_action.h"
#include "chrome/browser/debugger/devtools_window.h"
-#include "chrome/browser/google/google_util.h"
#include "chrome/browser/history/history_types.h"
#include "chrome/browser/history/history_tab_helper.h"
#include "chrome/browser/infobars/infobar_tab_helper.h"
@@ -91,35 +90,6 @@ ContextMenuModel* ConvertMenuModel(const ui::MenuModel* ui_model) {
} // namespace
-// This class overrides the LinkClicked function in the PageInfoBubbleView
-// class and routes the help center link navigation to the host browser.
-class ExternalTabPageInfoBubbleView : public PageInfoBubbleView {
- public:
- ExternalTabPageInfoBubbleView(ExternalTabContainer* container,
- gfx::NativeWindow parent_window,
- Profile* profile,
- const GURL& url,
- const NavigationEntry::SSLStatus& ssl,
- bool show_history)
- : PageInfoBubbleView(parent_window, profile, url, ssl, show_history),
- container_(container) {
- DVLOG(1) << __FUNCTION__;
- }
- virtual ~ExternalTabPageInfoBubbleView() {
- DVLOG(1) << __FUNCTION__;
- }
- // LinkListener methods:
- virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE {
- GURL url = google_util::AppendGoogleLocaleParam(
- GURL(chrome::kPageInfoHelpCenterURL));
- container_->OpenURLFromTab(container_->tab_contents(), url, GURL(),
- NEW_FOREGROUND_TAB,
- content::PAGE_TRANSITION_LINK);
- }
- private:
- scoped_refptr<ExternalTabContainer> container_;
-};
-
base::LazyInstance<ExternalTabContainer::PendingTabs>
ExternalTabContainer::pending_tabs_ = LAZY_INSTANCE_INITIALIZER;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698