| Index: chrome/browser/android/banners/app_banner_infobar_delegate.cc
 | 
| diff --git a/chrome/browser/android/banners/app_banner_infobar_delegate.cc b/chrome/browser/android/banners/app_banner_infobar_delegate.cc
 | 
| index 789fecf17119b6fed599a0a5f29e0e47401b5a0f..625a12f9406468794686cbccfed5080110b8db7c 100644
 | 
| --- a/chrome/browser/android/banners/app_banner_infobar_delegate.cc
 | 
| +++ b/chrome/browser/android/banners/app_banner_infobar_delegate.cc
 | 
| @@ -17,6 +17,7 @@
 | 
|  #include "chrome/browser/banners/app_banner_metrics.h"
 | 
|  #include "chrome/browser/banners/app_banner_settings_helper.h"
 | 
|  #include "chrome/browser/infobars/infobar_service.h"
 | 
| +#include "chrome/browser/metrics/rappor/sampling.h"
 | 
|  #include "chrome/browser/ui/android/infobars/app_banner_infobar.h"
 | 
|  #include "chrome/grit/generated_resources.h"
 | 
|  #include "components/infobars/core/infobar.h"
 | 
| @@ -121,12 +122,18 @@ void AppBannerInfoBarDelegate::InfoBarDismissed() {
 | 
|          native_app_package_,
 | 
|          AppBannerSettingsHelper::APP_BANNER_EVENT_DID_BLOCK,
 | 
|          AppBannerManager::GetCurrentTime());
 | 
| +
 | 
| +    rappor::SampleDomainAndRegistryFromGURL("AppBanner.NativeApp.Dismissed",
 | 
| +                                            web_contents->GetURL());
 | 
|    } else if (!web_app_data_.IsEmpty()) {
 | 
|      AppBannerSettingsHelper::RecordBannerEvent(
 | 
|          web_contents, web_contents->GetURL(),
 | 
|          web_app_data_.start_url.spec(),
 | 
|          AppBannerSettingsHelper::APP_BANNER_EVENT_DID_BLOCK,
 | 
|          AppBannerManager::GetCurrentTime());
 | 
| +
 | 
| +    rappor::SampleDomainAndRegistryFromGURL("AppBanner.WebApp.Dismissed",
 | 
| +                                            web_contents->GetURL());
 | 
|    }
 | 
|  }
 | 
|  
 | 
| @@ -176,6 +183,8 @@ bool AppBannerInfoBarDelegate::Accept() {
 | 
|          true);
 | 
|  
 | 
|      TrackInstallEvent(INSTALL_EVENT_WEB_APP_INSTALLED);
 | 
| +    rappor::SampleDomainAndRegistryFromGURL("AppBanner.WebApp.Installed",
 | 
| +                                            web_contents->GetURL());
 | 
|      return true;
 | 
|    }
 | 
|  
 | 
| @@ -228,6 +237,8 @@ void AppBannerInfoBarDelegate::OnInstallIntentReturned(
 | 
|          AppBannerManager::GetCurrentTime());
 | 
|  
 | 
|      TrackInstallEvent(INSTALL_EVENT_NATIVE_APP_INSTALL_STARTED);
 | 
| +    rappor::SampleDomainAndRegistryFromGURL("AppBanner.NativeApp.Installed",
 | 
| +                                            web_contents->GetURL());
 | 
|    }
 | 
|  
 | 
|    UpdateInstallState(env, obj);
 | 
| 
 |