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

Unified Diff: third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp

Issue 2555983003: Pass null WebString for empty WebSecurityOrigin::suborigin() (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bfaaaa10765d49ab2d75ac610a6251ff9daac29b..a23adf0149bedebce379a8f701fb98bea03805ec 100644
--- a/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebSecurityOrigin.cpp
@@ -95,7 +95,8 @@ unsigned short WebSecurityOrigin::effectivePort() const {
WebString WebSecurityOrigin::suborigin() const {
DCHECK(m_private);
- return m_private->hasSuborigin() ? m_private->suborigin()->name() : "";
+ return m_private->hasSuborigin() ? WebString(m_private->suborigin()->name())
+ : WebString();
}
bool WebSecurityOrigin::isUnique() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698