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

Side by Side Diff: chrome/browser/chrome_browser_main.cc

Issue 1917103004: Move WebUSB from OriginTrialEnabled to RuntimeEnabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: correct content/public/common/content_features.h Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 // Set up a task to delete old WebRTC log files for all profiles. Use a delay 1272 // Set up a task to delete old WebRTC log files for all profiles. Use a delay
1273 // to reduce the impact on startup time. 1273 // to reduce the impact on startup time.
1274 BrowserThread::PostDelayedTask( 1274 BrowserThread::PostDelayedTask(
1275 BrowserThread::UI, 1275 BrowserThread::UI,
1276 FROM_HERE, 1276 FROM_HERE,
1277 base::Bind(&WebRtcLogUtil::DeleteOldWebRtcLogFilesForAllProfiles), 1277 base::Bind(&WebRtcLogUtil::DeleteOldWebRtcLogFilesForAllProfiles),
1278 base::TimeDelta::FromMinutes(1)); 1278 base::TimeDelta::FromMinutes(1));
1279 #endif // defined(ENABLE_WEBRTC) 1279 #endif // defined(ENABLE_WEBRTC)
1280 1280
1281 #if !defined(OS_ANDROID) 1281 #if !defined(OS_ANDROID)
1282 if (base::FeatureList::IsEnabled(features::kWebUsb)) { 1282 // WebUSB is an experimental web API. The sites these notifications will link
1283 // to will only work if the experiment is enabled and WebUSB feature is
1284 // enabled.
1285 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
1286 switches::kEnableExperimentalWebPlatformFeatures) &&
1287 base::FeatureList::IsEnabled(features::kWebUsb)) {
1283 webusb_browser_client_.reset(new ChromeWebUsbBrowserClient()); 1288 webusb_browser_client_.reset(new ChromeWebUsbBrowserClient());
1284 webusb_detector_.reset( 1289 webusb_detector_.reset(
1285 new webusb::WebUsbDetector(webusb_browser_client_.get())); 1290 new webusb::WebUsbDetector(webusb_browser_client_.get()));
1286 } 1291 }
1287 #endif 1292 #endif
1288 1293
1289 // At this point, StartupBrowserCreator::Start has run creating initial 1294 // At this point, StartupBrowserCreator::Start has run creating initial
1290 // browser windows and tabs, but no progress has been made in loading 1295 // browser windows and tabs, but no progress has been made in loading
1291 // content as the main message loop hasn't started processing tasks yet. 1296 // content as the main message loop hasn't started processing tasks yet.
1292 // We setup to observe to the initial page load here to defer running 1297 // We setup to observe to the initial page load here to defer running
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1952 chromeos::CrosSettings::Shutdown(); 1957 chromeos::CrosSettings::Shutdown();
1953 #endif // defined(OS_CHROMEOS) 1958 #endif // defined(OS_CHROMEOS)
1954 #endif // defined(OS_ANDROID) 1959 #endif // defined(OS_ANDROID)
1955 } 1960 }
1956 1961
1957 // Public members: 1962 // Public members:
1958 1963
1959 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 1964 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
1960 chrome_extra_parts_.push_back(parts); 1965 chrome_extra_parts_.push_back(parts);
1961 } 1966 }
OLDNEW
« 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