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

Side by Side Diff: chrome/browser/ui/webui/signin/user_manager_screen_handler.h

Issue 132453004: Add Profile metric counting to new User Manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added new metric information to xml file Created 6 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/profiles/profile_metrics.h"
10 #include "chrome/browser/ui/host_desktop.h" 11 #include "chrome/browser/ui/host_desktop.h"
11 #include "content/public/browser/web_ui_message_handler.h" 12 #include "content/public/browser/web_ui_message_handler.h"
12 #include "google_apis/gaia/gaia_auth_consumer.h" 13 #include "google_apis/gaia/gaia_auth_consumer.h"
13 14
14 class GaiaAuthFetcher; 15 class GaiaAuthFetcher;
15 16
16 namespace base { 17 namespace base {
17 class DictionaryValue; 18 class DictionaryValue;
18 class FilePath; 19 class FilePath;
19 class ListValue; 20 class ListValue;
(...skipping 24 matching lines...) Expand all
44 45
45 // Handle GAIA auth results. 46 // Handle GAIA auth results.
46 virtual void OnClientLoginSuccess(const ClientLoginResult& result) OVERRIDE; 47 virtual void OnClientLoginSuccess(const ClientLoginResult& result) OVERRIDE;
47 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error) 48 virtual void OnClientLoginFailure(const GoogleServiceAuthError& error)
48 OVERRIDE; 49 OVERRIDE;
49 50
50 // Sends user list to account chooser. 51 // Sends user list to account chooser.
51 void SendUserList(); 52 void SendUserList();
52 53
53 // Pass success/failure information back to the web page. 54 // Pass success/failure information back to the web page.
54 void ReportAuthenticationResult(bool success); 55 void ReportAuthenticationResult(bool success, ProfileMetrics::ProfileAuth);
msw 2014/01/29 17:51:58 nit: this new parameter should have an identifier.
bcwhite 2014/01/29 19:50:52 Done.
55 56
56 // Observes the ProfileInfoCache and gets notified when a profile has been 57 // Observes the ProfileInfoCache and gets notified when a profile has been
57 // modified, so that the displayed user pods can be updated. 58 // modified, so that the displayed user pods can be updated.
58 scoped_ptr<ProfileUpdateObserver> profileInfoCacheObserver_; 59 scoped_ptr<ProfileUpdateObserver> profileInfoCacheObserver_;
59 60
60 // The host desktop type this user manager belongs to. 61 // The host desktop type this user manager belongs to.
61 chrome::HostDesktopType desktop_type_; 62 chrome::HostDesktopType desktop_type_;
62 63
63 // Authenticator used when local-auth fails. 64 // Authenticator used when local-auth fails.
64 scoped_ptr<GaiaAuthFetcher> client_login_; 65 scoped_ptr<GaiaAuthFetcher> client_login_;
65 66
66 // The index of the profile currently being authenticated. 67 // The index of the profile currently being authenticated.
67 size_t authenticating_profile_index_; 68 size_t authenticating_profile_index_;
68 69
69 // Login password, held during on-line auth for saving later if correct. 70 // Login password, held during on-line auth for saving later if correct.
70 std::string password_attempt_; 71 std::string password_attempt_;
71 72
72 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler); 73 DISALLOW_COPY_AND_ASSIGN(UserManagerScreenHandler);
73 }; 74 };
74 75
75 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_ 76 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_USER_MANAGER_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698