| Index: chrome/browser/profiles/profile_window.cc
|
| diff --git a/chrome/browser/profiles/profile_window.cc b/chrome/browser/profiles/profile_window.cc
|
| index 821239cf55bc1bc18484ebb8893d0731fa445892..9cf9febd4b72694f92fbeb0b0de63f999a5ae513 100644
|
| --- a/chrome/browser/profiles/profile_window.cc
|
| +++ b/chrome/browser/profiles/profile_window.cc
|
| @@ -127,7 +127,8 @@ void SwitchToProfile(
|
| const base::FilePath& path,
|
| chrome::HostDesktopType desktop_type,
|
| bool always_create,
|
| - ProfileSwitchingDoneCallback callback) {
|
| + ProfileSwitchingDoneCallback callback,
|
| + ProfileMetrics::ProfileOpen metric) {
|
| g_browser_process->profile_manager()->CreateProfileAsync(
|
| path,
|
| base::Bind(&OpenBrowserWindowForProfile,
|
| @@ -138,6 +139,7 @@ void SwitchToProfile(
|
| base::string16(),
|
| base::string16(),
|
| std::string());
|
| + ProfileMetrics::LogProfileSwitchUser(metric);
|
| }
|
|
|
| void SwitchToGuestProfile(chrome::HostDesktopType desktop_type,
|
| @@ -152,10 +154,12 @@ void SwitchToGuestProfile(chrome::HostDesktopType desktop_type,
|
| base::string16(),
|
| base::string16(),
|
| std::string());
|
| + ProfileMetrics::LogProfileSwitchUser(ProfileMetrics::SWITCH_PROFILE_GUEST);
|
| }
|
|
|
| void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type,
|
| - ProfileSwitchingDoneCallback callback) {
|
| + ProfileSwitchingDoneCallback callback,
|
| + ProfileMetrics::ProfileAdd metric) {
|
| ProfileManager::CreateMultiProfileAsync(
|
| base::string16(),
|
| base::string16(),
|
| @@ -165,6 +169,7 @@ void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type,
|
| true,
|
| desktop_type),
|
| std::string());
|
| + ProfileMetrics::LogProfileAddNewUser(metric);
|
| }
|
|
|
| void CloseGuestProfileWindows() {
|
|
|