summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-17 16:27:51 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-17 16:27:51 +0000
commitb6f2b91367ba6ed9ebb305233d4e786c1c748e45 (patch)
treefb4b48137d7beba4ca35838f5fcfdf747298f88d /chrome/browser/bookmarks
parentc3fac8bf704df395a6359e9da9edeca28ff34de0 (diff)
downloadchromium_src-b6f2b91367ba6ed9ebb305233d4e786c1c748e45.zip
chromium_src-b6f2b91367ba6ed9ebb305233d4e786c1c748e45.tar.gz
chromium_src-b6f2b91367ba6ed9ebb305233d4e786c1c748e45.tar.bz2
Makes opening a bookmark activate the window.
BUG=4447 TEST=see bug Review URL: http://codereview.chromium.org/10765 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5560 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks')
-rw-r--r--chrome/browser/bookmarks/bookmark_utils.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/bookmarks/bookmark_utils.cc b/chrome/browser/bookmarks/bookmark_utils.cc
index ec96ce0..7d985ff 100644
--- a/chrome/browser/bookmarks/bookmark_utils.cc
+++ b/chrome/browser/bookmarks/bookmark_utils.cc
@@ -216,10 +216,12 @@ void OpenAll(HWND parent,
if (!navigator) {
Browser* browser =
BrowserList::FindBrowserWithType(profile, BrowserType::TABBED_BROWSER);
- if (!browser || !browser->GetSelectedTabContents())
+ if (!browser || !browser->GetSelectedTabContents()) {
navigator = &navigator_impl;
- else
+ } else {
+ browser->window()->Activate();
navigator = browser->GetSelectedTabContents();
+ }
}
bool opened_url = false;