| Index: chrome/browser/profiles/profile_window.cc
|
| diff --git a/chrome/browser/profiles/profile_window.cc b/chrome/browser/profiles/profile_window.cc
|
| index 42c1ad768dd5153026d6e6e1ce778f74aa088cbe..9b85dffd5033d81ddf137be9bae70682cdd37f88 100644
|
| --- a/chrome/browser/profiles/profile_window.cc
|
| +++ b/chrome/browser/profiles/profile_window.cc
|
| @@ -274,6 +274,9 @@ void SwitchToProfile(const base::FilePath& path,
|
| bool always_create,
|
| ProfileManager::CreateCallback callback,
|
| ProfileMetrics::ProfileOpen metric) {
|
| + ProfileMetrics::LogProfileSwitch(metric,
|
| + g_browser_process->profile_manager(),
|
| + path);
|
| g_browser_process->profile_manager()->CreateProfileAsync(
|
| path,
|
| base::Bind(&OpenBrowserWindowForProfile,
|
| @@ -284,13 +287,16 @@ void SwitchToProfile(const base::FilePath& path,
|
| base::string16(),
|
| base::string16(),
|
| std::string());
|
| - ProfileMetrics::LogProfileSwitchUser(metric);
|
| }
|
|
|
| void SwitchToGuestProfile(chrome::HostDesktopType desktop_type,
|
| ProfileManager::CreateCallback callback) {
|
| + const base::FilePath& path = ProfileManager::GetGuestProfilePath();
|
| + ProfileMetrics::LogProfileSwitch(ProfileMetrics::SWITCH_PROFILE_GUEST,
|
| + g_browser_process->profile_manager(),
|
| + path);
|
| g_browser_process->profile_manager()->CreateProfileAsync(
|
| - ProfileManager::GetGuestProfilePath(),
|
| + path,
|
| base::Bind(&OpenBrowserWindowForProfile,
|
| callback,
|
| false,
|
| @@ -299,7 +305,6 @@ void SwitchToGuestProfile(chrome::HostDesktopType desktop_type,
|
| base::string16(),
|
| base::string16(),
|
| std::string());
|
| - ProfileMetrics::LogProfileSwitchUser(ProfileMetrics::SWITCH_PROFILE_GUEST);
|
| }
|
|
|
| void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type,
|
|
|