Chromium Code Reviews| Index: chrome/browser/sync/test/integration/sync_arc_package_helper.cc |
| diff --git a/chrome/browser/sync/test/integration/sync_arc_package_helper.cc b/chrome/browser/sync/test/integration/sync_arc_package_helper.cc |
| index 0dcb2cf649782baa31f26a32b7b49d308b0fd7e1..ddaf929362ddf6f3a4044badb05000463d35f9f8 100644 |
| --- a/chrome/browser/sync/test/integration/sync_arc_package_helper.cc |
| +++ b/chrome/browser/sync/test/integration/sync_arc_package_helper.cc |
| @@ -10,6 +10,8 @@ |
| #include "base/memory/ptr_util.h" |
| #include "base/run_loop.h" |
| #include "base/strings/string_number_conversions.h" |
| +#include "chrome/browser/chromeos/arc/arc_auth_notification.h" |
| +#include "chrome/browser/chromeos/arc/arc_service_launcher.h" |
| #include "chrome/browser/chromeos/arc/arc_session_manager.h" |
| #include "chrome/browser/chromeos/arc/arc_util.h" |
| #include "chrome/browser/chromeos/login/users/fake_chrome_user_manager.h" |
| @@ -153,8 +155,8 @@ void SyncArcPackageHelper::SetupArcService(Profile* profile, size_t id) { |
| ArcSessionManager* arc_session_manager = ArcSessionManager::Get(); |
|
maxbogue
2017/03/01 19:25:51
Is this line doing anything anymore?
hidehiko
2017/03/02 02:21:57
Good catch. Removed.
|
| DCHECK(arc_session_manager); |
| ArcSessionManager::DisableUIForTesting(); |
| - arc_session_manager->SetProfile(profile); |
| - arc_session_manager->StartPreferenceHandler(); |
| + ArcAuthNotification::DisableForTesting(); |
| + arc::ArcServiceLauncher::Get()->OnPrimaryUserProfilePrepared(profile); |
| arc::SetArcPlayStoreEnabledForProfile(profile, true); |
| ArcAppListPrefs* arc_app_list_prefs = ArcAppListPrefs::Get(profile); |