Skip to content

Commit 2751f70

Browse files
author
Kai Koehne
committed
<chromium> [backport] Add support for file origins to url::Origin.
BUG= Change-Id: I0339e88207543f9229bf3df086e1daea7ce5c855 Committed: https://crrev.com/b27713e1dd922d7501860506a281901b6a47bfb8 Cr-Commit-Position: refs/heads/master@{#305593} Reviewed-by: Michael Brüning <[email protected]>
1 parent 146ebe2 commit 2751f70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chromium/url/origin.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Origin::Origin() : string_("null") {}
1313
Origin::Origin(const std::string& origin) : string_(origin) {
1414
DCHECK(origin == "null" || MatchPattern(origin, "?*://?*"));
1515
DCHECK_GT(origin.size(), 0u);
16-
DCHECK_NE(origin[origin.size() - 1], '/');
16+
DCHECK(origin == "file://" || origin[origin.size() - 1] != '/');
1717
}
1818

1919
} // namespace url

0 commit comments

Comments
 (0)