Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Unified Diff: chrome/browser/ui/panels/panel.cc

Issue 10914242: Improve panel tests by properly waiting for expected conditions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: undo changes to ActivateDeactivateBasic test Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/panels/panel.cc
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
index 56dd5d6f1d7156436965d61f387e2e83360e82a9..29b883e99a06dd677e938ab7e2bb8fe03c348883 100644
--- a/chrome/browser/ui/panels/panel.cc
+++ b/chrome/browser/ui/panels/panel.cc
@@ -261,7 +261,8 @@ panel::Resizability Panel::CanResizeByMouse() const {
}
void Panel::SetPanelBounds(const gfx::Rect& bounds) {
- native_panel_->SetPanelBounds(bounds);
+ if (bounds != native_panel_->GetPanelBounds())
+ native_panel_->SetPanelBounds(bounds);
}
void Panel::SetPanelBoundsInstantly(const gfx::Rect& bounds) {

Powered by Google App Engine
This is Rietveld 408576698