Commit 22ed3e91 authored by nancy's avatar nancy Committed by Commit Bot

Hide the icon for ARC intent helper.

BUG=1024670

Change-Id: I9e5e2d67bc4b637f29fe0bf19621b85bd5986210
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1986467Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Nancy Wang <nancylingwang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#728361}
parent 186fe2cb
...@@ -12,6 +12,10 @@ ...@@ -12,6 +12,10 @@
#include "chrome/services/app_service/public/cpp/app_update.h" #include "chrome/services/app_service/public/cpp/app_update.h"
#include "chrome/services/app_service/public/mojom/types.mojom.h" #include "chrome/services/app_service/public/mojom/types.mojom.h"
namespace {
const char kArcIntentHelperAppId[] = "lomchfnmkmhfhbibboadbgabihofenaa";
}
AppServiceAppIconLoader::AppServiceAppIconLoader( AppServiceAppIconLoader::AppServiceAppIconLoader(
Profile* profile, Profile* profile,
int resource_size_in_dip, int resource_size_in_dip,
...@@ -27,6 +31,10 @@ AppServiceAppIconLoader::AppServiceAppIconLoader( ...@@ -27,6 +31,10 @@ AppServiceAppIconLoader::AppServiceAppIconLoader(
AppServiceAppIconLoader::~AppServiceAppIconLoader() = default; AppServiceAppIconLoader::~AppServiceAppIconLoader() = default;
bool AppServiceAppIconLoader::CanLoadImageForApp(const std::string& app_id) { bool AppServiceAppIconLoader::CanLoadImageForApp(const std::string& app_id) {
// Skip the ARC intent helper, the system Android app that proxies links to
// Chrome, which should be hidden.
if (app_id == kArcIntentHelperAppId)
return false;
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment