Chromium Code Reviews| 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 6fdd5cf1c0fea885c956f7c3bb58acf210e62c43..786d389c32a2b24b2f49d6b4e997d5ebf817c012 100644 |
| --- a/chrome/browser/banners/app_banner_manager.cc |
| +++ b/chrome/browser/banners/app_banner_manager.cc |
| @@ -11,6 +11,7 @@ |
| #include "content/public/browser/render_frame_host.h" |
| #include "content/public/browser/web_contents.h" |
| #include "content/public/common/frame_navigate_params.h" |
| +#include "content/public/common/origin_util.h" |
| #include "net/base/load_flags.h" |
| #include "ui/gfx/screen.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 |
|
palmer
2015/04/30 19:05:11
Nit: I think you can make this comment more concis
|
| // URL is invalid. |
| - if (!validated_url.SchemeIsSecure() && !gDisableSecureCheckForTesting) |
| + if (!IsOriginSecure(validated_url) && !gDisableSecureCheckForTesting) |
| return; |
| // Kick off the data retrieval pipeline. |