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

Unified Diff: chrome/browser/chromeos/arc/intent_helper/arc_settings_service.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
Index: chrome/browser/chromeos/arc/intent_helper/arc_settings_service.cc
diff --git a/chrome/browser/chromeos/arc/intent_helper/arc_settings_service.cc b/chrome/browser/chromeos/arc/intent_helper/arc_settings_service.cc
index e640b254e87ad99a3a21828228e865ff959500e9..552675f6388e5544bad9b091392a1489598deee5 100644
--- a/chrome/browser/chromeos/arc/intent_helper/arc_settings_service.cc
+++ b/chrome/browser/chromeos/arc/intent_helper/arc_settings_service.cc
@@ -39,8 +39,6 @@ using ::chromeos::system::TimezoneSettings;
namespace {
-constexpr uint32_t kMinVersionForSendBroadcast = 1;
-
bool GetHttpProxyServer(const ProxyConfigDictionary* proxy_config_dict,
std::string* host,
int* port) {
@@ -471,8 +469,8 @@ void ArcSettingsServiceImpl::SyncAccessibilityVirtualKeyboardEnabled() const {
void ArcSettingsServiceImpl::SendSettingsBroadcast(
const std::string& action,
const base::DictionaryValue& extras) const {
- auto* instance = arc_bridge_service_->intent_helper()->GetInstanceForMethod(
- "SendBroadcast", kMinVersionForSendBroadcast);
+ auto* instance = ARC_GET_INSTANCE_FOR_METHOD(
+ arc_bridge_service_->intent_helper(), SendBroadcast);
if (!instance)
return;
std::string extras_json;

Powered by Google App Engine
This is Rietveld 408576698