Move chrome/browser/manifest to content/browser.
This change is related to PaymentHandler API[1]. We added support for payment
instrument icons feature[2]. It is very similar to the icons field in
WebAppManifest. So, moving the manifest icon downloader and selector from
chrome to content, we can remove duplicated codes. Fortunately, the related
files use only content/public APIs and have no dependency with chrome layer.
So, they can be moved easily.
[1] https://w3c.github.io/payment-handler/
[2] https://codereview.chromium.org/2925063003/
BUG=720029
Review-Url: https://codereview.chromium.org/2933743002
Cr-Commit-Position: refs/heads/master@{#479424}
diff --git a/chrome/browser/android/shortcut_helper.cc b/chrome/browser/android/shortcut_helper.cc
index ae166f2..dba05a2 100644
--- a/chrome/browser/android/shortcut_helper.cc
+++ b/chrome/browser/android/shortcut_helper.cc
@@ -19,9 +19,9 @@
#include "chrome/browser/android/webapk/chrome_webapk_host.h"
#include "chrome/browser/android/webapk/webapk_install_service.h"
#include "chrome/browser/android/webapk/webapk_metrics.h"
-#include "chrome/browser/manifest/manifest_icon_downloader.h"
#include "chrome/common/chrome_switches.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/manifest_icon_downloader.h"
#include "content/public/browser/web_contents.h"
#include "jni/ShortcutHelper_jni.h"
#include "ui/gfx/android/java_bitmap.h"
@@ -209,7 +209,7 @@
const std::string& webapp_id) {
// This is a fire and forget task. It is not vital for the splash screen image
// to be downloaded so if the downloader returns false there is no fallback.
- ManifestIconDownloader::Download(
+ content::ManifestIconDownloader::Download(
web_contents, image_url, ideal_splash_image_size_in_px,
minimum_splash_image_size_in_px,
base::Bind(&ShortcutHelper::StoreWebappSplashImage, webapp_id));