Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/renderer/chrome_content_renderer_client.h" | 5 #include "chrome/renderer/chrome_content_renderer_client.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1310 #endif | 1310 #endif |
| 1311 } | 1311 } |
| 1312 | 1312 |
| 1313 bool ChromeContentRendererClient::ShouldGatherSiteIsolationStats() const { | 1313 bool ChromeContentRendererClient::ShouldGatherSiteIsolationStats() const { |
| 1314 // Site isolation stats are gathered currently for non-extension renderer | 1314 // Site isolation stats are gathered currently for non-extension renderer |
| 1315 // processes running a normal web page from the Internet. | 1315 // processes running a normal web page from the Internet. |
| 1316 // TODO(nick): https://crbug.com/268640 Gather stats for extension processes | 1316 // TODO(nick): https://crbug.com/268640 Gather stats for extension processes |
| 1317 // too; we would need to check the extension's manifest to know which sites | 1317 // too; we would need to check the extension's manifest to know which sites |
| 1318 // it's allowed to access. | 1318 // it's allowed to access. |
| 1319 #if BUILDFLAG(ENABLE_EXTENSIONS) | 1319 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 1320 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 1320 return !IsStandaloneExtensionProcess(); |
|
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.
| |
| 1321 return !command_line->HasSwitch(extensions::switches::kExtensionProcess); | |
| 1322 #else | 1321 #else |
| 1323 return true; | 1322 return true; |
| 1324 #endif | 1323 #endif |
| 1325 } | 1324 } |
| 1326 | 1325 |
| 1327 blink::WebWorkerContentSettingsClientProxy* | 1326 blink::WebWorkerContentSettingsClientProxy* |
| 1328 ChromeContentRendererClient::CreateWorkerContentSettingsClientProxy( | 1327 ChromeContentRendererClient::CreateWorkerContentSettingsClientProxy( |
| 1329 content::RenderFrame* render_frame, | 1328 content::RenderFrame* render_frame, |
| 1330 WebFrame* frame) { | 1329 WebFrame* frame) { |
| 1331 return new WorkerContentSettingsClientProxy(render_frame, frame); | 1330 return new WorkerContentSettingsClientProxy(render_frame, frame); |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1552 | 1551 |
| 1553 RecordYouTubeRewriteUMA(result); | 1552 RecordYouTubeRewriteUMA(result); |
| 1554 return corrected_url.ReplaceComponents(r); | 1553 return corrected_url.ReplaceComponents(r); |
| 1555 } | 1554 } |
| 1556 | 1555 |
| 1557 std::unique_ptr<base::TaskScheduler::InitParams> | 1556 std::unique_ptr<base::TaskScheduler::InitParams> |
| 1558 ChromeContentRendererClient::GetTaskSchedulerInitParams() { | 1557 ChromeContentRendererClient::GetTaskSchedulerInitParams() { |
| 1559 return task_scheduler_util:: | 1558 return task_scheduler_util:: |
| 1560 GetRendererTaskSchedulerInitParamsFromCommandLine(); | 1559 GetRendererTaskSchedulerInitParamsFromCommandLine(); |
| 1561 } | 1560 } |
| OLD | NEW |