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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 1671553004: Enable WebUSB through the Experimental Framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove RuntimeEnabled=WebUSB. Created 4 years, 8 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 | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 52fc09caa750a44466a843aebd02df9a417b9c11..bdeb551bd62304887904fe8b87d6f082c9d6ada9 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1270,12 +1270,7 @@ void ChromeBrowserMainParts::PostBrowserStart() {
#endif // defined(ENABLE_WEBRTC)
#if !defined(OS_ANDROID)
- // WebUSB is an experimental web API. The sites these notifications will link
- // to will only work if the experiment is enabled and WebUSB feature is
- // enabled.
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableExperimentalWebPlatformFeatures) &&
- base::FeatureList::IsEnabled(features::kWebUsb)) {
+ if (base::FeatureList::IsEnabled(features::kWebUsb)) {
webusb_browser_client_.reset(new ChromeWebUsbBrowserClient());
webusb_detector_.reset(
new webusb::WebUsbDetector(webusb_browser_client_.get()));
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698