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

Unified Diff: third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp

Issue 1504403003: Calling isSecureContext() with no arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small refactoring to isSecureContext() calls Created 5 years 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: third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
diff --git a/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp b/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
index e5a42303ece3cc90bba7cb6642b33fd4746e7c7e..0935f858e01706cbee542159bdfb1206a039b4bc 100644
--- a/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
+++ b/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
@@ -416,8 +416,7 @@ void InspectorCacheStorageAgent::requestCacheNames(ErrorString* errorString, con
RefPtr<SecurityOrigin> secOrigin = SecurityOrigin::createFromString(securityOrigin);
// Cache Storage API is restricted to trustworthy origins.
- String ignoredMessage;
- if (!secOrigin->isPotentiallyTrustworthy(ignoredMessage)) {
+ if (!secOrigin->isPotentiallyTrustworthy()) {
// Don't treat this as an error, just don't attempt to open and enumerate the caches.
callback->sendSuccess(Array<TypeBuilder::CacheStorage::Cache>::create());
return;

Powered by Google App Engine
This is Rietveld 408576698