diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-15 20:53:24 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-15 20:53:24 +0000 |
commit | 78600f488d65bd1e5c64e590a4e20c1bceebbe59 (patch) | |
tree | 87732f185231ba807527fcf6e2b2386176aa89fe | |
parent | 4c9101d2cac63aef7cc15fd2fcd7b4d26d80e33f (diff) | |
download | chromium_src-78600f488d65bd1e5c64e590a4e20c1bceebbe59.zip chromium_src-78600f488d65bd1e5c64e590a4e20c1bceebbe59.tar.gz chromium_src-78600f488d65bd1e5c64e590a4e20c1bceebbe59.tar.bz2 |
Options: Fix the Languages URL in the render view context menu.
BUG=75596.
TEST=none
R=stuartmorgan@chromium.org
Review URL: http://codereview.chromium.org/6696028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78282 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/tab_contents/render_view_context_menu.cc | 8 | ||||
-rw-r--r-- | chrome/common/url_constants.cc | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc index ccf0b34..d6cd581 100644 --- a/chrome/browser/tab_contents/render_view_context_menu.cc +++ b/chrome/browser/tab_contents/render_view_context_menu.cc @@ -1421,10 +1421,12 @@ void RenderViewContextMenu::ExecuteCommand(int id) { break; } - case IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS: - OpenURL(GURL(chrome::kLanguageOptionsSubPage), NEW_FOREGROUND_TAB, - PageTransition::LINK); + case IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS: { + std::string url = std::string(chrome::kChromeUISettingsURL) + + chrome::kLanguageOptionsSubPage; + OpenURL(GURL(url), NEW_FOREGROUND_TAB, PageTransition::LINK); break; + } case IDC_SPELLPANEL_TOGGLE: source_tab_contents_->render_view_host()->ToggleSpellPanel( diff --git a/chrome/common/url_constants.cc b/chrome/common/url_constants.cc index 141df13..db565a5 100644 --- a/chrome/common/url_constants.cc +++ b/chrome/common/url_constants.cc @@ -194,7 +194,7 @@ const char kContentSettingsExceptionsSubPage[] = "contentExceptions"; const char kDefaultOptionsSubPage[] = ""; const char kImportDataSubPage[] = "importData"; const char kInstantConfirmPage[] = "instantConfirm"; -const char kLanguageOptionsSubPage[] = "language"; +const char kLanguageOptionsSubPage[] = "languages"; const char kPersonalOptionsSubPage[] = "personal"; const char kPasswordManagerSubPage[] = "passwords"; const char kSearchEnginesSubPage[] = "searchEngines"; |