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

Unified Diff: chrome/browser/android/banners/app_banner_manager_android.cc

Issue 2933743002: Move chrome/browser/manifest to content/browser. (Closed)
Patch Set: rebased Created 3 years, 6 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/shortcut_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/banners/app_banner_manager_android.cc
diff --git a/chrome/browser/android/banners/app_banner_manager_android.cc b/chrome/browser/android/banners/app_banner_manager_android.cc
index ac3b29e92b7eda71a5955393c3cde7386980cbb3..cd8c740576e86460f94fe0f07c0edcce2effccb3 100644
--- a/chrome/browser/android/banners/app_banner_manager_android.cc
+++ b/chrome/browser/android/banners/app_banner_manager_android.cc
@@ -17,8 +17,8 @@
#include "chrome/browser/android/webapk/webapk_web_manifest_checker.h"
#include "chrome/browser/banners/app_banner_metrics.h"
#include "chrome/browser/banners/app_banner_settings_helper.h"
-#include "chrome/browser/manifest/manifest_icon_downloader.h"
-#include "chrome/browser/manifest/manifest_icon_selector.h"
+#include "content/public/browser/manifest_icon_downloader.h"
+#include "content/public/browser/manifest_icon_selector.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/frame_navigate_params.h"
#include "jni/AppBannerManager_jni.h"
@@ -56,10 +56,11 @@ std::unique_ptr<ShortcutInfo> CreateShortcutInfo(
ShortcutHelper::GetIdealSplashImageSizeInPx();
shortcut_info->minimum_splash_image_size_in_px =
ShortcutHelper::GetMinimumSplashImageSizeInPx();
- shortcut_info->splash_image_url = ManifestIconSelector::FindBestMatchingIcon(
- manifest.icons, shortcut_info->ideal_splash_image_size_in_px,
- shortcut_info->minimum_splash_image_size_in_px,
- content::Manifest::Icon::IconPurpose::ANY);
+ shortcut_info->splash_image_url =
+ content::ManifestIconSelector::FindBestMatchingIcon(
+ manifest.icons, shortcut_info->ideal_splash_image_size_in_px,
+ shortcut_info->minimum_splash_image_size_in_px,
+ content::Manifest::Icon::IconPurpose::ANY);
return shortcut_info;
}
@@ -118,7 +119,7 @@ bool AppBannerManagerAndroid::OnAppDetailsRetrieved(
if (!CheckIfShouldShowBanner())
return false;
- return ManifestIconDownloader::Download(
+ return content::ManifestIconDownloader::Download(
web_contents(), primary_icon_url_, GetIdealPrimaryIconSizeInPx(),
GetMinimumPrimaryIconSizeInPx(),
base::Bind(&AppBannerManager::OnAppIconFetched, GetWeakPtr()));
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/shortcut_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698