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

Side by Side 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: Track user-source in the histogram suffix 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public views::TextfieldController, 43 public views::TextfieldController,
44 public AvatarMenuObserver, 44 public AvatarMenuObserver,
45 public OAuth2TokenService::Observer { 45 public OAuth2TokenService::Observer {
46 public: 46 public:
47 // Different views that can be displayed in the bubble. 47 // Different views that can be displayed in the bubble.
48 enum BubbleViewMode { 48 enum BubbleViewMode {
49 // Shows a "fast profile switcher" view. 49 // Shows a "fast profile switcher" view.
50 BUBBLE_VIEW_MODE_PROFILE_CHOOSER, 50 BUBBLE_VIEW_MODE_PROFILE_CHOOSER,
51 // Shows a list of accounts for the active user. 51 // Shows a list of accounts for the active user.
52 BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT, 52 BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT,
53 // Shows a list of accounts for the active user, initiated by GAIA.
54 BUBBLE_VIEW_MODE_ACCOUNT_MANAGEMENT_FROM_GAIA,
53 // Shows a web view for primary sign in. 55 // Shows a web view for primary sign in.
54 BUBBLE_VIEW_MODE_GAIA_SIGNIN, 56 BUBBLE_VIEW_MODE_GAIA_SIGNIN,
55 // Shows a web view for adding secondary accounts. 57 // Shows a web view for adding secondary accounts.
56 BUBBLE_VIEW_MODE_GAIA_ADD_ACCOUNT, 58 BUBBLE_VIEW_MODE_GAIA_ADD_ACCOUNT,
57 // Shows a view for confirming account removal. 59 // Shows a view for confirming account removal.
58 BUBBLE_VIEW_MODE_ACCOUNT_REMOVAL, 60 BUBBLE_VIEW_MODE_ACCOUNT_REMOVAL,
59 // Shows a view for ending new profile management preview. 61 // Shows a view for ending new profile management preview.
60 BUBBLE_VIEW_MODE_END_PREVIEW 62 BUBBLE_VIEW_MODE_END_PREVIEW
61 }; 63 };
62 64
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 247
246 // Records the account id to remove. 248 // Records the account id to remove.
247 std::string account_id_to_remove_; 249 std::string account_id_to_remove_;
248 250
249 // Active view mode. 251 // Active view mode.
250 BubbleViewMode view_mode_; 252 BubbleViewMode view_mode_;
251 253
252 // The current tutorial mode. 254 // The current tutorial mode.
253 TutorialMode tutorial_mode_; 255 TutorialMode tutorial_mode_;
254 256
257 // The view was prompted to open from a GAIA header.
258 const bool opened_from_gaia_;
259
255 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView); 260 DISALLOW_COPY_AND_ASSIGN(ProfileChooserView);
256 }; 261 };
257 262
258 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_ 263 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILE_CHOOSER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698