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; |