diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-28 01:29:20 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-28 01:29:20 +0000 |
commit | e5d549d8889c0533703211652564bc0a55ec9938 (patch) | |
tree | 1657b37fe9aab6dc719d2f4cc2298c42a8d92e62 /chrome/browser/translate | |
parent | 1f2f300c1767a21a17e1b9ce3acb4b75ae854600 (diff) | |
download | chromium_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/translate')
-rw-r--r-- | chrome/browser/translate/options_menu_model.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/translate/options_menu_model.cc b/chrome/browser/translate/options_menu_model.cc index d3ccd48..662d674 100644 --- a/chrome/browser/translate/options_menu_model.cc +++ b/chrome/browser/translate/options_menu_model.cc @@ -16,6 +16,8 @@ #include "grit/locale_settings.h" #include "ui/base/l10n/l10n_util.h" +using content::OpenURLParams; +using content::Referrer; using content::WebContents; namespace { @@ -142,9 +144,10 @@ void OptionsMenuModel::ExecuteCommand(int command_id) { if (web_contents) { GURL about_url = google_util::AppendGoogleLocaleParam( GURL(kAboutGoogleTranslateUrl)); - web_contents->OpenURL( - about_url, GURL(), NEW_FOREGROUND_TAB, - content::PAGE_TRANSITION_LINK); + OpenURLParams params( + about_url, Referrer(), NEW_FOREGROUND_TAB, + content::PAGE_TRANSITION_LINK, false); + web_contents->OpenURL(params); } break; } |