summaryrefslogtreecommitdiffstats
path: root/chrome/browser/custom_handlers
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-28 01:29:20 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-28 01:29:20 +0000
commite5d549d8889c0533703211652564bc0a55ec9938 (patch)
tree1657b37fe9aab6dc719d2f4cc2298c42a8d92e62 /chrome/browser/custom_handlers
parent1f2f300c1767a21a17e1b9ce3acb4b75ae854600 (diff)
downloadchromium_src-e5d549d8889c0533703211652564bc0a55ec9938.zip
chromium_src-e5d549d8889c0533703211652564bc0a55ec9938.tar.gz
chromium_src-e5d549d8889c0533703211652564bc0a55ec9938.tar.bz2
Move the PageNavigator interface and GlobalRequestID struct to content\public and put them in the content namespace. Make PageNavigator use WebContents instead of TabContents. While I'm touching all the callers, I've removed the deprecated PageNavigator function and converted users to the new one.
BUG=98716 TBR=joi Review URL: http://codereview.chromium.org/8991012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115858 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/custom_handlers')
-rw-r--r--chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
index 00ed210..2375954 100644
--- a/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
+++ b/chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
@@ -14,6 +14,8 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+using content::OpenURLParams;
+using content::Referrer;
using content::UserMetricsAction;
RegisterProtocolHandlerInfoBarDelegate::RegisterProtocolHandlerInfoBarDelegate(
@@ -93,9 +95,13 @@ bool RegisterProtocolHandlerInfoBarDelegate::LinkClicked(
WindowOpenDisposition disposition) {
content::RecordAction(
UserMetricsAction("RegisterProtocolHandler.InfoBar_LearnMore"));
- owner()->web_contents()->OpenURL(google_util::AppendGoogleLocaleParam(GURL(
- chrome::kLearnMoreRegisterProtocolHandlerURL)), GURL(),
+ OpenURLParams params(
+ google_util::AppendGoogleLocaleParam(GURL(
+ chrome::kLearnMoreRegisterProtocolHandlerURL)),
+ Referrer(),
(disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
- content::PAGE_TRANSITION_LINK);
+ content::PAGE_TRANSITION_LINK,
+ false);
+ owner()->web_contents()->OpenURL(params);
return false;
}