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 67eae4f8e924d68b879681d0b664bba145e67ebd..5b3e831c3b9ba33e89650d8bcc5100b856d7f9d9 100644 |
--- a/chrome/browser/banners/app_banner_manager.cc |
+++ b/chrome/browser/banners/app_banner_manager.cc |
@@ -7,6 +7,7 @@ |
#include "base/metrics/field_trial.h" |
#include "chrome/browser/banners/app_banner_data_fetcher.h" |
#include "chrome/browser/banners/app_banner_settings_helper.h" |
+#include "chrome/common/origin_util.h" |
#include "content/public/browser/navigation_details.h" |
#include "content/public/browser/render_frame_host.h" |
#include "content/public/browser/web_contents.h" |
@@ -47,9 +48,9 @@ void AppBannerManager::DidFinishLoad( |
return; |
} |
- // A secure scheme is required to show banners, so exit early if we see the |
+ // A secure origin is required to show banners, so exit early if we see the |
// URL is invalid. |
- if (!validated_url.SchemeIsSecure() && !gDisableSecureCheckForTesting) |
+ if (!IsOriginSecure(validated_url) && !gDisableSecureCheckForTesting) |
return; |
// Kick off the data retrieval pipeline. |