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

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

Issue 132453004: Add Profile metric counting to new User Manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed minor formatting comments Created 6 years, 11 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 1b19e71a26851cb6fee8a52cef242ca372040799..56687726852d379250d952df2712496c61791b01 100644
--- a/chrome/browser/profiles/profile_list_desktop_browsertest.cc
+++ b/chrome/browser/profiles/profile_list_desktop_browsertest.cc
@@ -116,16 +116,19 @@ IN_PROC_BROWSER_TEST_F(ProfileListDesktopBrowserTest, SwitchToProfile) {
EXPECT_EQ(path_profile1, browser_list->get(0)->profile()->GetPath());
// Open a browser window for the first profile.
- menu->SwitchToProfile(cache.GetIndexOfProfileWithPath(path_profile1), false);
+ menu->SwitchToProfile(cache.GetIndexOfProfileWithPath(path_profile1),
+ false, ProfileMetrics::SWITCH_PROFILE_ICON);
EXPECT_EQ(1U, browser_list->size());
EXPECT_EQ(path_profile1, browser_list->get(0)->profile()->GetPath());
// Open a browser window for the second profile.
- menu->SwitchToProfile(cache.GetIndexOfProfileWithPath(path_profile2), false);
+ menu->SwitchToProfile(cache.GetIndexOfProfileWithPath(path_profile2),
+ false, ProfileMetrics::SWITCH_PROFILE_ICON);
EXPECT_EQ(2U, browser_list->size());
// Switch to the first profile without opening a new window.
- menu->SwitchToProfile(cache.GetIndexOfProfileWithPath(path_profile1), false);
+ menu->SwitchToProfile(cache.GetIndexOfProfileWithPath(path_profile1),
+ false, ProfileMetrics::SWITCH_PROFILE_ICON);
EXPECT_EQ(2U, browser_list->size());
EXPECT_EQ(path_profile1, browser_list->get(0)->profile()->GetPath());
EXPECT_EQ(path_profile2, browser_list->get(1)->profile()->GetPath());

Powered by Google App Engine
This is Rietveld 408576698