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

Side by Side Diff: chrome/browser/chromeos/login/session/user_session_manager.h

Issue 1064843003: Add an UMA stat to be able to see if the User pods are show on start screen, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit. Created 5 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/session/user_session_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 // Injects |user_context| that will be used to create StubAuthenticator 364 // Injects |user_context| that will be used to create StubAuthenticator
365 // instance when CreateAuthenticator() is called. 365 // instance when CreateAuthenticator() is called.
366 void InjectStubUserContext(const UserContext& user_context); 366 void InjectStubUserContext(const UserContext& user_context);
367 367
368 // Controls whether browser instance should be launched after sign in 368 // Controls whether browser instance should be launched after sign in
369 // (used in tests). 369 // (used in tests).
370 void set_should_launch_browser_in_tests(bool should_launch_browser) { 370 void set_should_launch_browser_in_tests(bool should_launch_browser) {
371 should_launch_browser_ = should_launch_browser; 371 should_launch_browser_ = should_launch_browser;
372 } 372 }
373 373
374 // The user pods display type for histogram.
375 enum UserPodsDisplay {
376 // User pods enabling or disabling is possible either via local settings or
377 // via domain policy. The former method only applies to regular devices,
378 // whereas the latter is for enterprise-managed devices. Therefore, we have
379 // four possible combiations.
380 USER_PODS_DISPLAY_ENABLED_REGULAR = 0,
381 USER_PODS_DISPLAY_ENABLED_MANAGED = 1,
382 USER_PODS_DISPLAY_DISABLED_REGULAR = 2,
383 USER_PODS_DISPLAY_DISABLED_MANAGED = 3,
384 // Maximum histogram value.
385 NUM_USER_PODS_DISPLAY = 4
386 };
387
388 // Sends metrics for user pods display when existing user has logged in.
389 void SendUserPodsMetrics();
390
374 UserSessionManagerDelegate* delegate_; 391 UserSessionManagerDelegate* delegate_;
375 392
376 // Authentication/user context. 393 // Authentication/user context.
377 UserContext user_context_; 394 UserContext user_context_;
378 scoped_refptr<Authenticator> authenticator_; 395 scoped_refptr<Authenticator> authenticator_;
379 StartSessionType start_session_type_; 396 StartSessionType start_session_type_;
380 397
381 // Injected user context for stub authenticator. 398 // Injected user context for stub authenticator.
382 scoped_ptr<UserContext> injected_user_context_; 399 scoped_ptr<UserContext> injected_user_context_;
383 400
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 bool waiting_for_child_account_status_; 450 bool waiting_for_child_account_status_;
434 451
435 base::WeakPtrFactory<UserSessionManager> weak_factory_; 452 base::WeakPtrFactory<UserSessionManager> weak_factory_;
436 453
437 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); 454 DISALLOW_COPY_AND_ASSIGN(UserSessionManager);
438 }; 455 };
439 456
440 } // namespace chromeos 457 } // namespace chromeos
441 458
442 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 459 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/session/user_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698