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

Unified Diff: chrome/browser/android/banners/app_banner_infobar_delegate_android.h

Issue 2301263004: Add WebAPK installation metrics. (Closed)
Patch Set: domnickn@'s comments. Created 4 years, 3 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
Index: chrome/browser/android/banners/app_banner_infobar_delegate_android.h
diff --git a/chrome/browser/android/banners/app_banner_infobar_delegate_android.h b/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
index 6e09f1b5ad2a846be7a6aa4ef067bb33bc59dabd..6679af541ee2e66ba6dd3c4bc705c8974d28f124 100644
--- a/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
+++ b/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
@@ -27,6 +27,14 @@ struct ShortcutInfo;
namespace banners {
+// The states of WebAPK installation process. These states are tracked to
+// record dismiss events for WebAPK installation.
+enum InstallState {
dominickn 2016/09/19 01:38:39 Nit: call this WebApkInstallState, and change the
Xi Han 2016/09/20 18:25:18 Done.
+ WAIT_FOR_START,
dominickn 2016/09/19 01:38:39 Nit: "INSTALL_NOT_STARTED"?
Xi Han 2016/09/20 18:25:18 Done.
+ INSTALLING,
+ INSTALLED,
+};
+
// Manages installation of an app being promoted by a page.
class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
public:
@@ -132,6 +140,8 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
std::string webapk_package_name_;
bool is_webapk_;
+ // Indicates the current state of a WebAPK installation.
dominickn 2016/09/19 01:38:39 Nit: add a newline above the comment.
Xi Han 2016/09/20 18:25:18 Done.
+ InstallState install_state_;
base::WeakPtrFactory<AppBannerInfoBarDelegateAndroid> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698