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

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

Issue 1716303002: Remove SecurityOrigin::isPotentiallyTrustworthy() |errorMessage| (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 4 years, 10 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: 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 1cf09b6f3d6d73387cb88ccd4d3958187402814f..584e0fb6b7c07c69e901106f222b1da5d2acbda5 100644
--- a/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
+++ b/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
@@ -71,8 +71,10 @@ PassOwnPtr<WebServiceWorkerCacheStorage> assertCacheStorage(ErrorString* errorSt
RefPtr<SecurityOrigin> secOrigin = SecurityOrigin::createFromString(securityOrigin);
// Cache Storage API is restricted to trustworthy origins.
- if (!secOrigin->isPotentiallyTrustworthy(*errorString))
+ if (!secOrigin->isPotentiallyTrustworthy()) {
+ *errorString = secOrigin->isPotentiallyTrustworthyErrorMessage();
return nullptr;
+ }
String identifier = createDatabaseIdentifierFromSecurityOrigin(secOrigin.get());
OwnPtr<WebServiceWorkerCacheStorage> cache = adoptPtr(Platform::current()->cacheStorage(identifier));

Powered by Google App Engine
This is Rietveld 408576698