| Index: chrome/browser/banners/app_banner_manager.cc
|
| diff --git a/chrome/browser/banners/app_banner_manager.cc b/chrome/browser/banners/app_banner_manager.cc
|
| index a46c9dd012bfe2d0e632f0e29f8051c6811b7250..8feb7a6e8e678392a0807435c1af7c4730a42ce7 100644
|
| --- a/chrome/browser/banners/app_banner_manager.cc
|
| +++ b/chrome/browser/banners/app_banner_manager.cc
|
| @@ -30,7 +30,6 @@
|
|
|
| namespace {
|
|
|
| -bool gDisableSecureCheckForTesting = false;
|
| int gCurrentRequestID = -1;
|
| base::LazyInstance<base::TimeDelta> gTimeDeltaForTesting =
|
| LAZY_INSTANCE_INITIALIZER;
|
| @@ -63,11 +62,6 @@ InstallableParams ParamsToPerformInstallableCheck(int ideal_icon_size_in_dp,
|
| namespace banners {
|
|
|
| // static
|
| -void AppBannerManager::DisableSecureSchemeCheckForTesting() {
|
| - gDisableSecureCheckForTesting = true;
|
| -}
|
| -
|
| -// static
|
| base::Time AppBannerManager::GetCurrentTime() {
|
| return base::Time::Now() + gTimeDeltaForTesting.Get();
|
| }
|
| @@ -119,8 +113,7 @@ void AppBannerManager::RequestAppBanner(const GURL& validated_url,
|
|
|
| // A secure origin is required to show banners, so exit early if we see the
|
| // URL is invalid.
|
| - if (!content::IsOriginSecure(validated_url) &&
|
| - !gDisableSecureCheckForTesting) {
|
| + if (!content::IsOriginSecure(validated_url)) {
|
| ReportStatus(contents, NOT_FROM_SECURE_ORIGIN);
|
| Stop();
|
| return;
|
|
|