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

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

Issue 2599673005: arc: Use GET_INTERFACE_FOR_METHOD macro (Closed)
Patch Set: Added a conversion I missed 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
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..474f88aee5bfea995c7e3febe7241e3a3a755fc4 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 = GET_INSTANCE_FOR_METHOD(
+ arc_service_manager->arc_bridge_service()->process(), KillProcess);
if (!arc_process_instance)
return false;

Powered by Google App Engine
This is Rietveld 408576698