diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 23:41:36 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 23:41:36 +0000 |
commit | 8b68b68ec27ff6e220d7bbcf2783933d05c4112e (patch) | |
tree | d58cdf0ea9c3abe87ba98dbd6a517ebb30063a96 /chrome | |
parent | 122331d5cf1fdad245bb4e174c188ec3851b4d13 (diff) | |
download | chromium_src-8b68b68ec27ff6e220d7bbcf2783933d05c4112e.zip chromium_src-8b68b68ec27ff6e220d7bbcf2783933d05c4112e.tar.gz chromium_src-8b68b68ec27ff6e220d7bbcf2783933d05c4112e.tar.bz2 |
Change prevents multiple instances of an extension's option page from being opened within one window when teh "Options" button is pressed on the extensions settings page.
BUG=none
TEST=Install an extension that specifies an options_page in it's manifest file. Open the extensions page (wrench menu) and click the "Options" button for that extension. The options page will open and come to the forefront. Go back to the extensions tab and click "Options" again. The same tab as before should be brought to the forefront.
Review URL: http://codereview.chromium.org/366026
Patch from Akira <akira@yayakoshi.net>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31170 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/extensions/extensions_ui.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extensions_ui.cc b/chrome/browser/extensions/extensions_ui.cc index 51a20bd..7cc5118 100644 --- a/chrome/browser/extensions/extensions_ui.cc +++ b/chrome/browser/extensions/extensions_ui.cc @@ -394,7 +394,7 @@ void ExtensionsDOMHandler::HandleOptionsMessage(const Value* value) { } Browser* browser = Browser::GetOrCreateTabbedBrowser(dom_ui_->GetProfile()); CHECK(browser); - browser->OpenURL(extension->options_url(), GURL(), NEW_FOREGROUND_TAB, + browser->OpenURL(extension->options_url(), GURL(), SINGLETON_TAB, PageTransition::LINK); } |