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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "android_webview/renderer/aw_content_renderer_client.h" 5 #include "android_webview/renderer/aw_content_renderer_client.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "android_webview/common/aw_switches.h" 9 #include "android_webview/common/aw_switches.h"
10 #include "android_webview/common/render_view_messages.h" 10 #include "android_webview/common/render_view_messages.h"
(...skipping 15 matching lines...) Expand all
26 #include "components/autofill/content/renderer/autofill_agent.h" 26 #include "components/autofill/content/renderer/autofill_agent.h"
27 #include "components/autofill/content/renderer/password_autofill_agent.h" 27 #include "components/autofill/content/renderer/password_autofill_agent.h"
28 #include "components/printing/renderer/print_web_view_helper.h" 28 #include "components/printing/renderer/print_web_view_helper.h"
29 #include "components/safe_browsing/renderer/websocket_sb_handshake_throttle.h" 29 #include "components/safe_browsing/renderer/websocket_sb_handshake_throttle.h"
30 #include "components/spellcheck/spellcheck_build_features.h" 30 #include "components/spellcheck/spellcheck_build_features.h"
31 #include "components/supervised_user_error_page/gin_wrapper.h" 31 #include "components/supervised_user_error_page/gin_wrapper.h"
32 #include "components/supervised_user_error_page/supervised_user_error_page_andro id.h" 32 #include "components/supervised_user_error_page/supervised_user_error_page_andro id.h"
33 #include "components/visitedlink/renderer/visitedlink_slave.h" 33 #include "components/visitedlink/renderer/visitedlink_slave.h"
34 #include "components/web_restrictions/interfaces/web_restrictions.mojom.h" 34 #include "components/web_restrictions/interfaces/web_restrictions.mojom.h"
35 #include "content/public/child/child_thread.h" 35 #include "content/public/child/child_thread.h"
36 #include "content/public/common/content_switches.h" 36 #include "content/public/common/content_features.h"
37 #include "content/public/common/service_manager_connection.h" 37 #include "content/public/common/service_manager_connection.h"
38 #include "content/public/common/service_names.mojom.h" 38 #include "content/public/common/service_names.mojom.h"
39 #include "content/public/common/simple_connection_filter.h" 39 #include "content/public/common/simple_connection_filter.h"
40 #include "content/public/common/url_constants.h" 40 #include "content/public/common/url_constants.h"
41 #include "content/public/renderer/document_state.h" 41 #include "content/public/renderer/document_state.h"
42 #include "content/public/renderer/navigation_state.h" 42 #include "content/public/renderer/navigation_state.h"
43 #include "content/public/renderer/render_frame.h" 43 #include "content/public/renderer/render_frame.h"
44 #include "content/public/renderer/render_thread.h" 44 #include "content/public/renderer/render_thread.h"
45 #include "content/public/renderer/render_view.h" 45 #include "content/public/renderer/render_view.h"
46 #include "net/base/escape.h" 46 #include "net/base/escape.h"
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 base::CompareCase::INSENSITIVE_ASCII)) { 328 base::CompareCase::INSENSITIVE_ASCII)) {
329 return true; 329 return true;
330 } 330 }
331 } 331 }
332 return false; 332 return false;
333 } 333 }
334 334
335 bool AwContentRendererClient::UsingSafeBrowsingMojoService() { 335 bool AwContentRendererClient::UsingSafeBrowsingMojoService() {
336 if (safe_browsing_) 336 if (safe_browsing_)
337 return true; 337 return true;
338 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( 338 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.
339 switches::kEnableNetworkService)) {
340 return false; 339 return false;
341 } 340 }
342 RenderThread::Get()->GetConnector()->BindInterface( 341 RenderThread::Get()->GetConnector()->BindInterface(
343 content::mojom::kBrowserServiceName, &safe_browsing_); 342 content::mojom::kBrowserServiceName, &safe_browsing_);
344 return true; 343 return true;
345 } 344 }
346 345
347 } // namespace android_webview 346 } // namespace android_webview
OLDNEW
« 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