| 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 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1571 | 1571 |
| 1572 RecordYouTubeRewriteUMA(result); | 1572 RecordYouTubeRewriteUMA(result); |
| 1573 return corrected_url.ReplaceComponents(r); | 1573 return corrected_url.ReplaceComponents(r); |
| 1574 } | 1574 } |
| 1575 | 1575 |
| 1576 std::unique_ptr<base::TaskScheduler::InitParams> | 1576 std::unique_ptr<base::TaskScheduler::InitParams> |
| 1577 ChromeContentRendererClient::GetTaskSchedulerInitParams() { | 1577 ChromeContentRendererClient::GetTaskSchedulerInitParams() { |
| 1578 return task_scheduler_util:: | 1578 return task_scheduler_util:: |
| 1579 GetRendererTaskSchedulerInitParamsFromCommandLine(); | 1579 GetRendererTaskSchedulerInitParamsFromCommandLine(); |
| 1580 } | 1580 } |
| 1581 |
| 1582 bool ChromeContentRendererClient::CanBeBackgrounded() const { |
| 1583 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 1584 return !IsStandaloneExtensionProcess(); |
| 1585 #else |
| 1586 return true; |
| 1587 #endif |
| 1588 } |
| OLD | NEW |