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

Unified Diff: chrome/browser/memory/tab_manager_delegate_chromeos.cc

Issue 2557513004: Remove explicit singletonness of ArcBridgeService part 3. (Closed)
Patch Set: Address comments. Created 4 years 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/memory/tab_manager_delegate_chromeos.cc
diff --git a/chrome/browser/memory/tab_manager_delegate_chromeos.cc b/chrome/browser/memory/tab_manager_delegate_chromeos.cc
index b9f1d3e315927f40531d741d9a9fb2016fba5b7d..0ca9a0149a404065da6ed040e872e29a4403e8a0 100644
--- a/chrome/browser/memory/tab_manager_delegate_chromeos.cc
+++ b/chrome/browser/memory/tab_manager_delegate_chromeos.cc
@@ -36,6 +36,7 @@
#include "chrome/common/chrome_features.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "components/arc/arc_bridge_service.h"
+#include "components/arc/arc_service_manager.h"
#include "components/arc/common/process.mojom.h"
#include "components/exo/shell_surface.h"
#include "content/public/browser/browser_thread.h"
@@ -545,13 +546,14 @@ TabManagerDelegate::GetSortedCandidates(
}
bool TabManagerDelegate::KillArcProcess(const int nspid) {
- auto* arc_bridge_service = arc::ArcBridgeService::Get();
- if (!arc_bridge_service)
+ auto* arc_service_manager = arc::ArcServiceManager::Get();
+ if (!arc_service_manager)
return false;
auto* arc_process_instance =
- arc_bridge_service->process()->GetInstanceForMethod(
- "KillProcess", kMinVersionForKillProcess);
+ arc_service_manager->arc_bridge_service()
+ ->process()
+ ->GetInstanceForMethod("KillProcess", kMinVersionForKillProcess);
if (!arc_process_instance)
return false;
« no previous file with comments | « chrome/browser/chromeos/policy/device_status_collector.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698