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

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

Issue 2599673005: arc: Use GET_INTERFACE_FOR_METHOD macro (Closed)
Patch Set: Addressed feedback 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
« no previous file with comments | « chrome/browser/chromeos/policy/device_status_collector.cc ('k') | chrome/browser/speech/tts_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0ca9a0149a404065da6ed040e872e29a4403e8a0..f25d392998849b9db5292326c9b1e73122a4869f 100644
--- a/chrome/browser/memory/tab_manager_delegate_chromeos.cc
+++ b/chrome/browser/memory/tab_manager_delegate_chromeos.cc
@@ -64,8 +64,6 @@ const char kArcProcessNamePrefix[] = "org.chromium.arc.";
// a little while before doing the adjustment.
const int kFocusedProcessScoreAdjustIntervalMs = 500;
-const uint32_t kMinVersionForKillProcess = 1;
-
aura::client::ActivationClient* GetActivationClient() {
if (!ash::Shell::HasInstance())
return nullptr;
@@ -550,10 +548,8 @@ bool TabManagerDelegate::KillArcProcess(const int nspid) {
if (!arc_service_manager)
return false;
- auto* arc_process_instance =
- arc_service_manager->arc_bridge_service()
- ->process()
- ->GetInstanceForMethod("KillProcess", kMinVersionForKillProcess);
+ auto* arc_process_instance = ARC_GET_INSTANCE_FOR_METHOD(
+ arc_service_manager->arc_bridge_service()->process(), KillProcess);
if (!arc_process_instance)
return false;
« no previous file with comments | « chrome/browser/chromeos/policy/device_status_collector.cc ('k') | chrome/browser/speech/tts_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698