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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 2863523002: [Cleanup] Use IsStandaloneExtensionProcess in ChromeContentRendererClient::ShouldGatherSiteIsolatio… (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index e561f09f70605dc8a067a5d5e3036656800cc280..cc7853b3f2458ea4d32d9a922e609731406adeff 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -1317,8 +1317,7 @@ bool ChromeContentRendererClient::ShouldGatherSiteIsolationStats() const {
// too; we would need to check the extension's manifest to know which sites
// it's allowed to access.
#if BUILDFLAG(ENABLE_EXTENSIONS)
- base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
sky 2017/05/04 02:55:23 if the command_line include is no longer necessary
karandeepb 2017/05/04 05:05:30 It's still used by IsStandaloneExtensionProcess.
- return !command_line->HasSwitch(extensions::switches::kExtensionProcess);
+ return !IsStandaloneExtensionProcess();
#else
return true;
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698