| 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/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2330 | 2330 |
| 2331 return true; | 2331 return true; |
| 2332 } | 2332 } |
| 2333 | 2333 |
| 2334 #if BUILDFLAG(ENABLE_EXTENSIONS) | 2334 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 2335 if (extensions::WebViewRendererState::GetInstance()->IsGuest( | 2335 if (extensions::WebViewRendererState::GetInstance()->IsGuest( |
| 2336 render_process_id)) { | 2336 render_process_id)) { |
| 2337 return true; | 2337 return true; |
| 2338 } | 2338 } |
| 2339 | 2339 |
| 2340 if (target_url.SchemeIs(extensions::kExtensionScheme) || | 2340 if (target_url.SchemeIs(extensions::kExtensionScheme)) { |
| 2341 target_url.SchemeIs(extensions::kExtensionResourceScheme)) { | |
| 2342 // Intentionally duplicating |io_data| and |map| code from above because we | 2341 // Intentionally duplicating |io_data| and |map| code from above because we |
| 2343 // want to reduce calls to retrieve them as this function is a SYNC IPC | 2342 // want to reduce calls to retrieve them as this function is a SYNC IPC |
| 2344 // handler. | 2343 // handler. |
| 2345 ProfileIOData* io_data = ProfileIOData::FromResourceContext(context); | 2344 ProfileIOData* io_data = ProfileIOData::FromResourceContext(context); |
| 2346 InfoMap* map = io_data->GetExtensionInfoMap(); | 2345 InfoMap* map = io_data->GetExtensionInfoMap(); |
| 2347 const Extension* extension = | 2346 const Extension* extension = |
| 2348 map->extensions().GetExtensionOrAppByURL(opener_url); | 2347 map->extensions().GetExtensionOrAppByURL(opener_url); |
| 2349 if (extension && extension->is_platform_app()) { | 2348 if (extension && extension->is_platform_app()) { |
| 2350 AppLoadedInTabSource source = | 2349 AppLoadedInTabSource source = |
| 2351 opener_top_level_frame_url == | 2350 opener_top_level_frame_url == |
| (...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3347 GetBrowserSchedulerWorkerPoolParamsFromVariations(); | 3346 GetBrowserSchedulerWorkerPoolParamsFromVariations(); |
| 3348 *index_to_traits_callback = base::Bind(&task_scheduler_util::initialization:: | 3347 *index_to_traits_callback = base::Bind(&task_scheduler_util::initialization:: |
| 3349 BrowserWorkerPoolIndexForTraits); | 3348 BrowserWorkerPoolIndexForTraits); |
| 3350 } | 3349 } |
| 3351 | 3350 |
| 3352 void ChromeContentBrowserClient:: | 3351 void ChromeContentBrowserClient:: |
| 3353 PerformExperimentalTaskSchedulerRedirections() { | 3352 PerformExperimentalTaskSchedulerRedirections() { |
| 3354 task_scheduler_util::variations:: | 3353 task_scheduler_util::variations:: |
| 3355 MaybePerformBrowserTaskSchedulerRedirection(); | 3354 MaybePerformBrowserTaskSchedulerRedirection(); |
| 3356 } | 3355 } |
| OLD | NEW |