Trigger a web app installation when a web app is installed in ARC.

This CL allows ARC to inform ArcAppListPrefs whether a newly installed
package is a web app or not. If it is a web app, ArcAppListPrefs
requests the web app's data from ARC, and upon receiving the data,
triggers an installation of the web app.

BUG=893927

Change-Id: Ia88043ef1d01f709e82340326e81de01da6c1c4c
Reviewed-on: https://chromium-review.googlesource.com/c/1314068
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Ben Wells <[email protected]>
Reviewed-by: Yury Khmel <[email protected]>
Reviewed-by: Yusuke Sato <[email protected]>
Reviewed-by: Greg Kerr <[email protected]>
Reviewed-by: Xiyuan Xia <[email protected]>
Reviewed-by: David Jacobo <[email protected]>
Commit-Queue: Dominick Ng <[email protected]>
Cr-Commit-Position: refs/heads/master@{#613031}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 957eb02..40bf030 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -293,6 +293,7 @@
 #endif
 
 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST)
+#include "chrome/browser/chromeos/apps/apk_web_app_service.h"
 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h"
 #endif
 
@@ -750,6 +751,7 @@
 
 #if defined(OS_CHROMEOS) && BUILDFLAG(ENABLE_APP_LIST)
   ArcAppListPrefs::RegisterProfilePrefs(registry);
+  chromeos::ApkWebAppService::RegisterProfilePrefs(registry);
 #endif
 
 #if BUILDFLAG(ENABLE_RLZ)