Commit 4a2f7f43 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

[s13n] Convert browsing_data_counter_utils_browsertest.cc to IdentityManager

BUG=907483

Change-Id: Id6b76a8b0d89d4ecb18e1253e6919ab37666b009
Reviewed-on: https://chromium-review.googlesource.com/c/1349590Reviewed-by: default avatarChristian Dullweber <dullweber@chromium.org>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#610604}
parent 93094c49
......@@ -22,8 +22,8 @@
#endif
#if defined(OS_CHROMEOS)
#include "chrome/browser/signin/signin_manager_factory.h"
#include "components/signin/core/browser/signin_manager_base.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "services/identity/public/cpp/identity_manager.h"
#endif
namespace browsing_data_counter_utils {
......@@ -81,8 +81,8 @@ IN_PROC_BROWSER_TEST_P(BrowsingDataCounterUtilsBrowserTest,
#if defined(OS_CHROMEOS)
// In browser tests, the profile may already by authenticated with stub
// account |user_manager::kStubUserEmail|.
AccountInfo info = SigninManagerFactory::GetForProfile(profile)
->GetAuthenticatedAccountInfo();
AccountInfo info =
IdentityManagerFactory::GetForProfile(profile)->GetPrimaryAccountInfo();
username = info.email;
#endif
if (username.empty())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment