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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 1426583008: Merge WebUSB notification flag into experimental web platform features. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/about_flags.cc ('k') | chrome/common/chrome_switches.h » ('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 010d0cbeec7af03358db7dd5723bf48f70341f0d..cb3ca1d2cab8142ad59152d67246f39a1eb87ebe 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1186,8 +1186,10 @@ void ChromeBrowserMainParts::PostBrowserStart() {
#endif // defined(ENABLE_WEBRTC)
#if !defined(OS_ANDROID) && !defined(OS_IOS)
+ // WebUSB is an experimental web API. The sites these notifications will link
+ // to will only work if the experiment is enabled.
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableWebUsbNotifications)) {
+ switches::kEnableExperimentalWebPlatformFeatures)) {
webusb_browser_client_.reset(new ChromeWebUsbBrowserClient());
webusb_detector_.reset(
new webusb::WebUsbDetector(webusb_browser_client_.get()));
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698