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

Unified Diff: android_webview/renderer/aw_content_renderer_client.cc

Issue 2960703003: Add a feature flag for network service and about:flags entry for it. (Closed)
Patch Set: more updates Created 3 years, 6 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/about_flags.cc » ('j') | chrome/renderer/chrome_content_renderer_client.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/renderer/aw_content_renderer_client.cc
diff --git a/android_webview/renderer/aw_content_renderer_client.cc b/android_webview/renderer/aw_content_renderer_client.cc
index 85a780dc68e9fd17367f6b15099ba899831b1b08..0ab5e349f28f69c682280448017c0e42a1b993af 100644
--- a/android_webview/renderer/aw_content_renderer_client.cc
+++ b/android_webview/renderer/aw_content_renderer_client.cc
@@ -33,7 +33,7 @@
#include "components/visitedlink/renderer/visitedlink_slave.h"
#include "components/web_restrictions/interfaces/web_restrictions.mojom.h"
#include "content/public/child/child_thread.h"
-#include "content/public/common/content_switches.h"
+#include "content/public/common/content_features.h"
#include "content/public/common/service_manager_connection.h"
#include "content/public/common/service_names.mojom.h"
#include "content/public/common/simple_connection_filter.h"
@@ -335,8 +335,7 @@ bool AwContentRendererClient::ShouldUseMediaPlayerForURL(const GURL& url) {
bool AwContentRendererClient::UsingSafeBrowsingMojoService() {
if (safe_browsing_)
return true;
- if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNetworkService)) {
+ if (!base::FeatureList::IsEnabled(features::kNetworkService)) {
Alexei Svitkine (slow) 2017/06/29 13:58:24 Nit: No {}'s
jam 2017/06/30 17:21:18 Done.
return false;
}
RenderThread::Get()->GetConnector()->BindInterface(
« no previous file with comments | « no previous file | chrome/browser/about_flags.cc » ('j') | chrome/renderer/chrome_content_renderer_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698