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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2274303002: Enable the WebUSB Origin Trial. (Closed)
Patch Set: Revert update to global-interface-listing-expected.txt. Created 4 years, 4 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/chrome_browser_main.cc ('k') | third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp » ('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 052e416edc16625d2124eea434a349cd12d68c35..0e2ea64140eb5d5b71067c59ff6ceee1beea2bc5 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -2896,12 +2896,7 @@ void ChromeContentBrowserClient::ExposeInterfacesToMediaService(
void ChromeContentBrowserClient::RegisterRenderFrameMojoInterfaces(
shell::InterfaceRegistry* registry,
content::RenderFrameHost* render_frame_host) {
- // WebUSB is an experimental web API. It will only work if the experiment
- // is enabled and WebUSB feature is enabled. It should also not be available
- // to apps and extensions.
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableExperimentalWebPlatformFeatures) &&
- base::FeatureList::IsEnabled(features::kWebUsb)
+ if (base::FeatureList::IsEnabled(features::kWebUsb)
#if defined(ENABLE_EXTENSIONS)
&&
!render_frame_host->GetSiteInstance()->GetSiteURL().SchemeIs(
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698