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

Unified Diff: chrome/renderer/content_settings_observer.cc

Issue 2409423005: Compare GURLs to kUrlConstants with .spec() and string equality (Closed)
Patch Set: git cl format Created 4 years, 2 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: chrome/renderer/content_settings_observer.cc
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc
index 160996ca21c15429950232e44bd0c15d2095795e..8956127086f4c5a351f448d2c119059ed687a5c9 100644
--- a/chrome/renderer/content_settings_observer.cc
+++ b/chrome/renderer/content_settings_observer.cc
@@ -521,7 +521,7 @@ bool ContentSettingsObserver::IsWhitelistedForContentSettings() const {
bool ContentSettingsObserver::IsWhitelistedForContentSettings(
const WebSecurityOrigin& origin,
const GURL& document_url) {
- if (document_url == GURL(content::kUnreachableWebDataURL))
+ if (document_url.spec() == content::kUnreachableWebDataURL)
return true;
if (origin.isUnique())

Powered by Google App Engine
This is Rietveld 408576698