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

Unified Diff: chrome/browser/profiles/profile_window.h

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_window.h
diff --git a/chrome/browser/profiles/profile_window.h b/chrome/browser/profiles/profile_window.h
index 1339d9497000e90de51ad6e35c018840758964fa..3c5510f8fed6f30566ff9e61169978b9b9270382 100644
--- a/chrome/browser/profiles/profile_window.h
+++ b/chrome/browser/profiles/profile_window.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_PROFILES_PROFILE_WINDOW_H_
#include "base/callback_forward.h"
+#include "chrome/browser/profiles/profile_metrics.h"
#include "chrome/browser/ui/host_desktop.h"
#include "chrome/browser/ui/startup/startup_types.h"
@@ -35,11 +36,11 @@ void FindOrCreateNewWindowForProfile(
// even if a window for that profile already exists. When the browser is
// opened, |callback| will be run if it isn't null.
-void SwitchToProfile(
- const base::FilePath& path,
- chrome::HostDesktopType desktop_type,
- bool always_create,
- ProfileSwitchingDoneCallback callback);
+void SwitchToProfile(const base::FilePath& path,
+ chrome::HostDesktopType desktop_type,
+ bool always_create,
+ ProfileSwitchingDoneCallback callback,
+ ProfileMetrics::ProfileOpen metric);
// Opens a Browser for the guest profile and runs |callback| if it isn't null.
void SwitchToGuestProfile(chrome::HostDesktopType desktop_type,
@@ -49,7 +50,8 @@ void SwitchToGuestProfile(chrome::HostDesktopType desktop_type,
// opens a new browser window for the profile once it is ready. When the browser
// is opened, |callback| will be run if it isn't null.
void CreateAndSwitchToNewProfile(chrome::HostDesktopType desktop_type,
- ProfileSwitchingDoneCallback callback);
+ ProfileSwitchingDoneCallback callback,
+ ProfileMetrics::ProfileAdd metric);
// Closes all browser windows that belong to the guest profile.
void CloseGuestProfileWindows();

Powered by Google App Engine
This is Rietveld 408576698