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

Unified Diff: chrome/browser/ui/webui/options/options_ui_browsertest.cc

Issue 895803003: [Profiles] Remove the NotificationService from the ProfileInfoCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cait nit Created 5 years, 10 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/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);

Powered by Google App Engine
This is Rietveld 408576698