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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.h

Issue 288493008: UMA Metrics for the user menu, including vasquette-detection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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/ui/views/profiles/profile_chooser_view.h
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.h b/chrome/browser/ui/views/profiles/profile_chooser_view.h
index cf18be707161cb3d1b3bb0763aba0ec8fe83fba6..47bcad5ece3a2f5f9dd31b579de8d148f05b882a 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.h
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.h
@@ -10,6 +10,7 @@
#include "chrome/browser/profiles/avatar_menu.h"
#include "chrome/browser/profiles/avatar_menu_observer.h"
+#include "chrome/browser/profiles/profile_metrics.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/profile_chooser_constants.h"
#include "google_apis/gaia/oauth2_token_service.h"
@@ -51,6 +52,7 @@ class ProfileChooserView : public views::BubbleDelegateView,
// showing it will appear while if it is showing, nothing will happen here and
// the existing bubble will auto-close due to focus loss.
static void ShowBubble(profiles::BubbleViewMode view_mode,
+ signin::GAIAServiceType service_type,
views::View* anchor_view,
views::BubbleBorder::Arrow arrow,
views::BubbleBorder::BubbleAlignment border_alignment,
@@ -78,7 +80,8 @@ class ProfileChooserView : public views::BubbleDelegateView,
views::BubbleBorder::Arrow arrow,
const gfx::Rect& anchor_rect,
Browser* browser,
- profiles::BubbleViewMode view_mode);
+ profiles::BubbleViewMode view_mode,
+ signin::GAIAServiceType service_type);
virtual ~ProfileChooserView();
// views::BubbleDelegateView:
@@ -180,6 +183,9 @@ class ProfileChooserView : public views::BubbleDelegateView,
views::View* CreateEndPreviewView();
+ // Clean-up done after an action was performed in the ProfileChooser.
+ void PostActionPerformed(ProfileMetrics::ProfileDesktopMenu action_performed);
+
scoped_ptr<AvatarMenu> avatar_menu_;
Browser* browser_;
@@ -232,6 +238,9 @@ class ProfileChooserView : public views::BubbleDelegateView,
// The current tutorial mode.
profiles::TutorialMode tutorial_mode_;
+ // The GAIA service type provided in the response header.
+ signin::GAIAServiceType gaia_service_type_;
+
DISALLOW_COPY_AND_ASSIGN(ProfileChooserView);
};
« no previous file with comments | « chrome/browser/ui/views/profiles/avatar_label.cc ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698