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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2385533002: Replace usage of GURL(origin.Serialize()) with origin.GetURL() (Closed)
Patch Set: ncarter comments 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/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 7e0d304a0ace749f9382e3fa59cdf060e416894e..92bbea57b24b37661ba13364aff4d136b28591be 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -2041,11 +2041,10 @@ ChromeContentBrowserClient::AllowWebBluetooth(
HostContentSettingsMapFactory::GetForProfile(
Profile::FromBrowserContext(browser_context));
- if (content_settings->GetContentSetting(GURL(requesting_origin.Serialize()),
- GURL(embedding_origin.Serialize()),
- CONTENT_SETTINGS_TYPE_BLUETOOTH_GUARD,
- std::string()) ==
- CONTENT_SETTING_BLOCK) {
+ if (content_settings->GetContentSetting(
+ requesting_origin.GetURL(), embedding_origin.GetURL(),
+ CONTENT_SETTINGS_TYPE_BLUETOOTH_GUARD,
+ std::string()) == CONTENT_SETTING_BLOCK) {
return AllowWebBluetoothResult::BLOCK_POLICY;
}
return AllowWebBluetoothResult::ALLOW;

Powered by Google App Engine
This is Rietveld 408576698