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

Unified Diff: content/public/browser/content_browser_client.cc

Issue 1841763002: Add a kill switch for all of Web Bluetooth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Add owners Created 4 years, 9 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: content/public/browser/content_browser_client.cc
diff --git a/content/public/browser/content_browser_client.cc b/content/public/browser/content_browser_client.cc
index 8ec8c8c9fd268addc6034b5ae8eb4a3e7d133b5f..7c86dd6bcfc86a2e302c9d9bc4ee71c9accd1f4b 100644
--- a/content/public/browser/content_browser_client.cc
+++ b/content/public/browser/content_browser_client.cc
@@ -226,11 +226,12 @@ bool ContentBrowserClient::AllowKeygen(const GURL& url,
return true;
}
-bool ContentBrowserClient::AllowWebBluetooth(
+ContentBrowserClient::AllowWebBluetoothResult
+ContentBrowserClient::AllowWebBluetooth(
content::BrowserContext* browser_context,
const url::Origin& requesting_origin,
const url::Origin& embedding_origin) {
- return true;
+ return AllowWebBluetoothResult::ALLOW;
}
QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() {

Powered by Google App Engine
This is Rietveld 408576698