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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2385533002: Replace usage of GURL(origin.Serialize()) with origin.GetURL() (Closed)
Patch Set: sync to #424762 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
« no previous file with comments | « chrome/browser/budget_service/budget_manager.cc ('k') | chrome/browser/site_details.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9d3579f134e9a4ace535655684d762b31c5ee634..ebd818a310a8deb1b27699ff7072b0bbad7277b1 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -2074,11 +2074,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;
« no previous file with comments | « chrome/browser/budget_service/budget_manager.cc ('k') | chrome/browser/site_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698