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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 2436763004: More graceful shutdown for ArcSession. (Closed)
Patch Set: Created 4 years, 2 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/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index b50ff9e5d948d51c73ae3027bfa850d075c366d6..17a5ee927bfd2a415855d806458ddac866bce8ec 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -4190,7 +4190,8 @@ class ArcPolicyTest : public PolicyTest {
std::unique_ptr<chromeos::SessionManagerClient>(
fake_session_manager_client_));
- auto service = base::MakeUnique<arc::ArcBridgeServiceImpl>();
+ // Here inject FakeArcSession so blocking task runner is not needed.
bartfab (slow) 2016/10/20 16:16:24 Nit: s/Here inject FakeArcSession/Inject FakeArcSe
hidehiko 2016/10/21 04:34:03 Done.
+ auto service = base::MakeUnique<arc::ArcBridgeServiceImpl>(nullptr);
service->SetArcSessionFactoryForTesting(
base::Bind(arc::FakeArcSession::Create));
arc::ArcServiceManager::SetArcBridgeServiceForTesting(std::move(service));

Powered by Google App Engine
This is Rietveld 408576698