Index: chrome/browser/extensions/api/app_window/app_window_apitest.cc |
diff --git a/chrome/browser/extensions/api/app_window/app_window_apitest.cc b/chrome/browser/extensions/api/app_window/app_window_apitest.cc |
index e1b97a2a01999e8d4d84f215868d2526b7f43602..4a91534fb3073b3adb662add11b829a3ff01e84a 100644 |
--- a/chrome/browser/extensions/api/app_window/app_window_apitest.cc |
+++ b/chrome/browser/extensions/api/app_window/app_window_apitest.cc |
@@ -14,6 +14,10 @@ |
#include "chrome/test/base/testing_profile.h" |
#include "ui/gfx/rect.h" |
+#ifdef TOOLKIT_GTK |
+#include "content/public/test/test_utils.h" |
+#endif |
+ |
namespace { |
class TestShellWindowRegistryObserver |
@@ -72,6 +76,23 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, WindowsApiBounds) { |
#endif // !TOOLKIT_GTK |
ready_listener.Reply(base::IntToString(slop)); |
+ |
+#ifdef TOOLKIT_GTK |
+ // TODO(asargent)- this is here to help track down the root cause of |
+ // crbug.com/164735. |
+ { |
+ gfx::Rect last_bounds; |
+ while (!success_listener.was_satisfied()) { |
+ gfx::Rect current_bounds = window->GetBaseWindow()->GetBounds(); |
+ if (current_bounds != last_bounds) { |
+ LOG(INFO) << "new bounds: " << current_bounds.ToString(); |
+ } |
+ last_bounds = current_bounds; |
+ content::RunAllPendingInMessageLoop(); |
+ } |
+ } |
+#endif |
+ |
ASSERT_TRUE(success_listener.WaitUntilSatisfied()); |
} |