diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-04 04:44:43 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-04 04:44:43 +0000 |
commit | 7199517ad5241497f9571f93b1f71b95aea95e0b (patch) | |
tree | 97615b7c0b57139da61dbccf7e332229074e4672 /chrome/browser/views/bookmark_manager_view.cc | |
parent | 6e863adaeafffd8fa5f2c6c733c22d9fc0ee17e7 (diff) | |
download | chromium_src-7199517ad5241497f9571f93b1f71b95aea95e0b.zip chromium_src-7199517ad5241497f9571f93b1f71b95aea95e0b.tar.gz chromium_src-7199517ad5241497f9571f93b1f71b95aea95e0b.tar.bz2 |
Fixes two bookmark manager bugs. Use Activate instead of MoveToFront
so that we restore the window if minimized/iconified and give focus to
the search field.
BUG=4038 4044
TEST=see bugs
Review URL: http://codereview.chromium.org/9069
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4557 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_manager_view.cc')
-rw-r--r-- | chrome/browser/views/bookmark_manager_view.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/views/bookmark_manager_view.cc b/chrome/browser/views/bookmark_manager_view.cc index cccf012..4cc816f 100644 --- a/chrome/browser/views/bookmark_manager_view.cc +++ b/chrome/browser/views/bookmark_manager_view.cc @@ -119,7 +119,7 @@ void BookmarkManagerView::Show(Profile* profile) { return; if (open_window != NULL) { - open_window->MoveToFront(true); + open_window->Activate(); return; } @@ -132,6 +132,9 @@ void BookmarkManagerView::Show(Profile* profile) { manager->PrepareForShow(); // And show it. open_window->Show(); + + // Give initial focus to the search field. + manager->search_tf_->RequestFocus(); } // static |