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

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: improve AutoResize test, was still flaking 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 7ab728305e69b80f67a32c13d4c04a7357389ce6..ac66ad08bebca79dfbcb38f2a0fed9280467e081 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