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

Unified Diff: chrome/browser/profiles/profile_list_desktop_browsertest.cc

Issue 271533004: Turning on MultiProfile by default for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/profiles/profile_list_desktop_browsertest.cc
diff --git a/chrome/browser/profiles/profile_list_desktop_browsertest.cc b/chrome/browser/profiles/profile_list_desktop_browsertest.cc
index 8f3c0b07e7c18257322a857af7f0b53301981229..8a2b53d1698fd26bf2f9a35c9b50f21f88bd6515 100644
--- a/chrome/browser/profiles/profile_list_desktop_browsertest.cc
+++ b/chrome/browser/profiles/profile_list_desktop_browsertest.cc
@@ -119,10 +119,10 @@ IN_PROC_BROWSER_TEST_F(ProfileListDesktopBrowserTest, MAYBE_SwitchToProfile) {
base::Bind(&OnUnblockOnProfileCreation),
base::string16(), base::string16(),
std::string());
-
// Spin to allow profile creation to take place, loop is terminated
// by OnUnblockOnProfileCreation when the profile is created.
content::RunMessageLoop();
+
ASSERT_EQ(cache.GetNumberOfProfiles(), 2U);
AvatarMenu* menu = GetAvatarMenu(&cache);
@@ -132,6 +132,7 @@ IN_PROC_BROWSER_TEST_F(ProfileListDesktopBrowserTest, MAYBE_SwitchToProfile) {
EXPECT_EQ(1U, browser_list->size());
EXPECT_EQ(path_profile1, browser_list->get(0)->profile()->GetPath());
+ EXPECT_EQ(1U, browser_list->size());
sky 2014/05/14 13:52:57 This is the same as on 132. Do you really need it
// Open a browser window for the first profile.
menu->SwitchToProfile(cache.GetIndexOfProfileWithPath(path_profile1),
false, ProfileMetrics::SWITCH_PROFILE_ICON);

Powered by Google App Engine
This is Rietveld 408576698