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

Unified Diff: third_party/WebKit/Source/platform/exported/WebSecurityOrigin.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/platform/exported/WebSecurityOrigin.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp b/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
index fce9c8ae0700c6f8cc3cb4fdb193665eebc1f6b9..559b177490193f43e87f92681d85ff6521a65f49 100644
--- a/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
@@ -126,9 +126,9 @@ bool WebSecurityOrigin::canRequest(const WebURL& url) const
bool WebSecurityOrigin::isPotentiallyTrustworthy(WebString& errorMessage) const
{
ASSERT(m_private);
- WTF::String message(errorMessage);
- bool result = m_private->isPotentiallyTrustworthy(message);
- errorMessage = message;
+ bool result = m_private->isPotentiallyTrustworthy();
+ if (!result)
+ errorMessage = WTF::String(m_private->isPotentiallyTrustworthyErrorMessage());
return result;
}

Powered by Google App Engine
This is Rietveld 408576698