Index: chrome/browser/ui/webui/options/options_ui_browsertest.cc |
diff --git a/chrome/browser/ui/webui/options/options_ui_browsertest.cc b/chrome/browser/ui/webui/options/options_ui_browsertest.cc |
index 4a26fc2137967d789382a2e2097c5d3477ff828f..7de5e6d955525719cab1f83929fe1428eae055f7 100644 |
--- a/chrome/browser/ui/webui/options/options_ui_browsertest.cc |
+++ b/chrome/browser/ui/webui/options/options_ui_browsertest.cc |
@@ -230,10 +230,6 @@ IN_PROC_BROWSER_TEST_F(OptionsUIBrowserTest, MAYBE_VerifyManagedSignout) { |
EXPECT_TRUE(profile_info_cache.GetIndexOfProfileWithPath(profile_dir) != |
std::string::npos); |
- content::WindowedNotificationObserver wait_for_profile_deletion( |
- chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED, |
- content::NotificationService::AllSources()); |
- |
// TODO(kaliamoorthi): Get the macos problem fixed and remove this code. |
// Deleting the Profile also destroys all browser windows of that Profile. |
// Wait for the current browser to close before resuming, otherwise |
@@ -246,8 +242,6 @@ IN_PROC_BROWSER_TEST_F(OptionsUIBrowserTest, MAYBE_VerifyManagedSignout) { |
browser()->tab_strip_model()->GetActiveWebContents(), |
"$('disconnect-managed-profile-ok').click();")); |
- wait_for_profile_deletion.Wait(); |
- |
EXPECT_TRUE(profile_info_cache.GetIndexOfProfileWithPath(profile_dir) == |
std::string::npos); |