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

Unified Diff: chrome/browser/sync/test/integration/sync_test.cc

Issue 1311123003: Fix sync E2E tests due to unclosed avatar windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years, 4 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
« no previous file with comments | « chrome/browser/sync/test/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/sync_test.cc
diff --git a/chrome/browser/sync/test/integration/sync_test.cc b/chrome/browser/sync/test/integration/sync_test.cc
index c0f0d85b24592f60bf9aa7e11a3370ae33977b4b..04941b2d41fb425b4399a839dba043210ed3abd7 100644
--- a/chrome/browser/sync/test/integration/sync_test.cc
+++ b/chrome/browser/sync/test/integration/sync_test.cc
@@ -44,6 +44,7 @@
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/host_desktop.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
+#include "chrome/browser/ui/views/profiles/profile_chooser_view.h"
msw 2015/09/01 00:27:20 Shouldn't this only be included #if defined(TOOLKI
msw 2015/09/15 18:17:23 You never addressed this comment. I'd expect that
#include "chrome/browser/ui/webui/signin/login_ui_service.h"
#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
#include "chrome/common/chrome_constants.h"
@@ -576,6 +577,14 @@ bool SyncTest::SetupSync() {
LoginUIServiceFactory::GetForProfile(GetProfile(i))->
SyncConfirmationUIClosed(false /* configure_sync_first */);
}
+
+ // Upon multiple profiles sign in, the profile chooser widget stays open and
+ // causes problems at test shutdown. This is a harmless command to close
+ // the widget in case it was showing.
+ // ChromeOS and mobile platforms don't have a ProfileChooserView.
+#if defined(FRAME_AVATAR_BUTTON)
+ ProfileChooserView::Hide();
msw 2015/09/01 00:27:20 Instead, try something like ui_test_utils::FocusVi
+#endif // defined(FRAME_AVATAR_BUTTON)
}
return true;
« no previous file with comments | « chrome/browser/sync/test/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698