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 67eae4f8e924d68b879681d0b664bba145e67ebd..d24a7fd3e4ebecb5ab5aae5ed1831699869e61e9 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" |
| @@ -49,7 +50,7 @@ void AppBannerManager::DidFinishLoad( |
| // A secure scheme is required to show banners, so exit early if we see the |
|
jww
2015/04/23 18:24:02
Please update this comment to reflect the new orig
lgarron
2015/04/23 23:05:51
Done.
|
| // URL is invalid. |
| - if (!validated_url.SchemeIsSecure() && !gDisableSecureCheckForTesting) |
| + if (!IsOriginSecure(validated_url) && !gDisableSecureCheckForTesting) |
| return; |
| // Kick off the data retrieval pipeline. |