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

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

Issue 12764018: Improve panel related tests to make them more reliable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch Created 7 years, 9 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_manager.cc
diff --git a/chrome/browser/ui/panels/panel_manager.cc b/chrome/browser/ui/panels/panel_manager.cc
index d454d4f307464c8a9b18fd25627af88a8e4ac0e8..df7d4aadda69ec4c467d82a7cc120c1e8a9ee9c9 100644
--- a/chrome/browser/ui/panels/panel_manager.cc
+++ b/chrome/browser/ui/panels/panel_manager.cc
@@ -286,13 +286,8 @@ PanelCollection* PanelManager::GetCollectionForNewPanel(
const gfx::Rect& bounds,
CreateMode mode,
PanelCollection::PositioningMask* positioning_mask) {
- if (mode == CREATE_AS_DOCKED) {
- // Delay layout refreshes in case multiple panels are created within
- // a short time of one another or the focus changes shortly after panel
- // is created to avoid excessive screen redraws.
- *positioning_mask = PanelCollection::DELAY_LAYOUT_REFRESH;
+ if (mode == CREATE_AS_DOCKED)
return docked_collection_.get();
- }
DCHECK_EQ(CREATE_AS_DETACHED, mode);
*positioning_mask = PanelCollection::DEFAULT_POSITION;
« no previous file with comments | « chrome/browser/ui/panels/panel_drag_browsertest.cc ('k') | chrome/browser/ui/panels/test_panel_collection_squeeze_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698