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

Unified Diff: chrome/browser/android/webapk/webapk_installer_unittest.cc

Issue 2528073002: Add a flag in WebAPK's proto when the Web App Manifest is no longer available. (Closed)
Patch Set: Remove best_icon_hash. Created 4 years 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/android/webapk/webapk_installer_unittest.cc
diff --git a/chrome/browser/android/webapk/webapk_installer_unittest.cc b/chrome/browser/android/webapk/webapk_installer_unittest.cc
index 10021ff93107a0b7e7a694291742e2e107c0910b..bf986a877246af98db72d53298435d3811b09055 100644
--- a/chrome/browser/android/webapk/webapk_installer_unittest.cc
+++ b/chrome/browser/android/webapk/webapk_installer_unittest.cc
@@ -107,13 +107,16 @@ class WebApkInstallerRunner {
const int kWebApkVersion = 1;
WebApkInstaller* installer = CreateWebApkInstaller();
+ std::map<std::string, std::string> icon_url_hash_map;
+ icon_url_hash_map[best_icon_url_.spec()] = kIconMurmur2Hash;
installer->UpdateAsyncWithURLRequestContextGetter(
url_request_context_getter_.get(),
base::Bind(&WebApkInstallerRunner::OnCompleted, base::Unretained(this)),
- kIconMurmur2Hash,
kDownloadedWebApkPackageName,
- kWebApkVersion);
+ kWebApkVersion,
+ false /* stale_manifest */,
+ icon_url_hash_map);
Run();
}

Powered by Google App Engine
This is Rietveld 408576698