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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2960703003: Add a feature flag for network service and about:flags entry for it. (Closed)
Patch Set: merge Created 3 years, 5 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/browser/flag_descriptions.h » ('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 14f079e13725cf36bff014b6c78b199bf259bdff..9d061cb3fd76543097c1850d84746350aaa5fb9c 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -2915,8 +2915,7 @@ void ChromeContentBrowserClient::ExposeInterfacesToRenderer(
base::RetainedRef(context)));
}
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNetworkService)) {
+ if (base::FeatureList::IsEnabled(features::kNetworkService)) {
registry->AddInterface(
base::Bind(&safe_browsing::MojoSafeBrowsingImpl::Create,
safe_browsing_service_->database_manager(),
@@ -3410,8 +3409,7 @@ std::vector<std::unique_ptr<content::URLLoaderThrottle>>
ChromeContentBrowserClient::CreateURLLoaderThrottles(
const base::Callback<content::WebContents*()>& wc_getter) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- DCHECK(base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNetworkService));
+ DCHECK(base::FeatureList::IsEnabled(features::kNetworkService));
std::vector<std::unique_ptr<content::URLLoaderThrottle>> result;
result.push_back(base::MakeUnique<safe_browsing::BrowserURLLoaderThrottle>(
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698