Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: content/browser/appcache/appcache_update_job.cc

Issue 1099453005: Switch web API/permission code to use IsOriginSecure() instead of SchemeIsSecure(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nhiroki's comment. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/appcache/appcache_update_job.cc
diff --git a/content/browser/appcache/appcache_update_job.cc b/content/browser/appcache/appcache_update_job.cc
index 4b212861222e0f15a560f871888c4f64860f7ed2..881e23b4f4b63cfd5dd219855c0e7605ac3e83c5 100644
--- a/content/browser/appcache/appcache_update_job.cc
+++ b/content/browser/appcache/appcache_update_job.cc
@@ -10,6 +10,7 @@
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/thread_task_runner_handle.h"
+#include "chrome/common/origin_util.h"
jww 2015/04/23 18:24:02 Given what's used below, you're not using this hea
lgarron 2015/04/23 23:05:51 Done.
#include "content/browser/appcache/appcache_group.h"
#include "content/browser/appcache/appcache_histograms.h"
#include "content/public/browser/browser_thread.h"
@@ -169,7 +170,7 @@ void AppCacheUpdateJob::URLFetcher::OnResponseStarted(
return;
}
- if (url_.SchemeIsSecure()) {
+ if (url_.SchemeIsCryptographic()) {
jww 2015/04/23 18:24:02 Why this check? Why not OriginIsSecure()?
lgarron 2015/04/23 23:05:51 There's a comment in the first patch. The code bel
// Do not cache content with cert errors.
// Also, we willfully violate the HTML5 spec at this point in order
// to support the appcaching of cross-origin HTTPS resources.

Powered by Google App Engine
This is Rietveld 408576698