diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-08 18:35:54 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-08 18:35:54 +0000 |
commit | fb6de399a7eead8338e4f49920feed47d122fec3 (patch) | |
tree | ce27a7a6d26e6e71709f5a58a4b5f00d39f80df9 /chrome/browser/find_bar_controller.cc | |
parent | f2f0a0b643f0edac8b346d2d53957d2a239699d0 (diff) | |
download | chromium_src-fb6de399a7eead8338e4f49920feed47d122fec3.zip chromium_src-fb6de399a7eead8338e4f49920feed47d122fec3.tar.gz chromium_src-fb6de399a7eead8338e4f49920feed47d122fec3.tar.bz2 |
Simplified the api by replacing them with single Show(false) call and cleaned up linux/mac code.
BUG=22036
TEST=None
Review URL: http://codereview.chromium.org/523125
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/find_bar_controller.cc')
-rw-r--r-- | chrome/browser/find_bar_controller.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/find_bar_controller.cc b/chrome/browser/find_bar_controller.cc index 5dca125..9b5bc7d 100644 --- a/chrome/browser/find_bar_controller.cc +++ b/chrome/browser/find_bar_controller.cc @@ -29,7 +29,7 @@ void FindBarController::Show() { // selected TabContents. if (!tab_contents_->find_ui_active()) { tab_contents_->set_find_ui_active(true); - find_bar_->Show(); + find_bar_->Show(true); } find_bar_->SetFocusAndSelection(); } @@ -101,8 +101,7 @@ void FindBarController::ChangeTabContents(TabContents* contents) { // visible state. We also want to reset the window location so that // we don't surprise the user by popping up to the left for no apparent // reason. - gfx::Rect new_pos = find_bar_->GetDialogPosition(gfx::Rect()); - find_bar_->SetDialogPosition(new_pos, false); + find_bar_->Show(false); } UpdateFindBarForCurrentResult(); |