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

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

Issue 2528073002: Add a flag in WebAPK's proto when the Web App Manifest is no longer available. (Closed)
Patch Set: Created 4 years, 1 month 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/android/webapk/webapk.proto ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/webapk/webapk_installer.cc
diff --git a/chrome/browser/android/webapk/webapk_installer.cc b/chrome/browser/android/webapk/webapk_installer.cc
index bb9e030916de819706c9df62fcac2f8e18429aad..95245287bba1def21907edb31b643b2b8987138c 100644
--- a/chrome/browser/android/webapk/webapk_installer.cc
+++ b/chrome/browser/android/webapk/webapk_installer.cc
@@ -122,10 +122,10 @@ std::unique_ptr<webapk::WebApk> BuildWebApkProtoInBackground(
webapk->set_requester_application_version(version_info::GetVersionNumber());
webapk->set_android_abi(getCurrentAbi());
- // TODO(hanxi): crbug.com/665078. Add a flag in WebAPK's proto to indicate
- // that the Web Manifest data in the proto might be stale.
- if (shortcut_icon_murmur2_hash.empty())
+ if (shortcut_icon_murmur2_hash.empty()) {
+ webapk->set_stale_manifest(true);
return webapk;
pkotwicz 2016/11/24 22:39:26 For the sake of simplicity, can we not do the retu
Xi Han 2016/11/28 16:34:33 We don't have the best_icon_url, so we can't reall
pkotwicz 2016/11/28 21:29:07 I agree that sending more data is not useful. Howe
Xi Han 2016/12/05 21:18:27 Done.
+ }
webapk::WebAppManifest* web_app_manifest = webapk->mutable_manifest();
web_app_manifest->set_name(base::UTF16ToUTF8(shortcut_info.name));
« no previous file with comments | « chrome/browser/android/webapk/webapk.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698