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

Unified Diff: chrome/browser/download/notification/download_notification_browsertest.cc

Issue 2619653002: ash: SessionControllerClient observes user image change (Closed)
Patch Set: rebase Created 3 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/download/notification/download_notification_browsertest.cc
diff --git a/chrome/browser/download/notification/download_notification_browsertest.cc b/chrome/browser/download/notification/download_notification_browsertest.cc
index 66927c395da7956965cf3fb8c2d1d4be28383498..4edbbb4b836b075a5f9355b590c2a04d674a13a0 100644
--- a/chrome/browser/download/notification/download_notification_browsertest.cc
+++ b/chrome/browser/download/notification/download_notification_browsertest.cc
@@ -30,6 +30,7 @@
#include "chrome/test/base/ui_test_utils.h"
#include "chromeos/chromeos_switches.h"
#include "components/prefs/pref_service.h"
+#include "components/session_manager/core/session_manager.h"
#include "components/signin/core/browser/signin_manager_base.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/download_item.h"
@@ -1183,13 +1184,11 @@ class MultiProfileDownloadNotificationTest
// Adds a new user for testing to the current session.
void AddUser(const TestAccountInfo& info, bool log_in) {
- user_manager::UserManager* const user_manager =
- user_manager::UserManager::Get();
- if (log_in)
- user_manager->UserLoggedIn(
- AccountId::FromUserEmailGaiaId(info.email, info.gaia_id), info.hash,
- false);
- user_manager->SaveUserDisplayName(
+ if (log_in) {
+ session_manager::SessionManager::Get()->CreateSession(
+ AccountId::FromUserEmailGaiaId(info.email, info.gaia_id), info.hash);
+ }
+ user_manager::UserManager::Get()->SaveUserDisplayName(
AccountId::FromUserEmailGaiaId(info.email, info.gaia_id),
base::UTF8ToUTF16(info.display_name));
SigninManagerFactory::GetForProfile(

Powered by Google App Engine
This is Rietveld 408576698