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/extensions/api/developer_private/developer_private_api.
h" | 5 #include "chrome/browser/extensions/api/developer_private/developer_private_api.
h" |
6 | 6 |
7 #include "apps/app_load_service.h" | 7 #include "apps/app_load_service.h" |
8 #include "apps/app_restore_service.h" | 8 #include "apps/app_restore_service.h" |
9 #include "apps/saved_files_service.h" | 9 #include "apps/saved_files_service.h" |
10 #include "apps/shell_window.h" | 10 #include "apps/shell_window.h" |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 return view; | 466 return view; |
467 } | 467 } |
468 | 468 |
469 ItemInspectViewList DeveloperPrivateGetItemsInfoFunction:: | 469 ItemInspectViewList DeveloperPrivateGetItemsInfoFunction:: |
470 GetInspectablePagesForExtension( | 470 GetInspectablePagesForExtension( |
471 const Extension* extension, | 471 const Extension* extension, |
472 bool extension_is_enabled) { | 472 bool extension_is_enabled) { |
473 | 473 |
474 ItemInspectViewList result; | 474 ItemInspectViewList result; |
475 // Get the extension process's active views. | 475 // Get the extension process's active views. |
476 ExtensionProcessManager* process_manager = | 476 extensions::ProcessManager* process_manager = |
477 ExtensionSystem::Get(GetProfile())->process_manager(); | 477 ExtensionSystem::Get(GetProfile())->process_manager(); |
478 GetInspectablePagesForExtensionProcess( | 478 GetInspectablePagesForExtensionProcess( |
479 extension, | 479 extension, |
480 process_manager->GetRenderViewHostsForExtension(extension->id()), | 480 process_manager->GetRenderViewHostsForExtension(extension->id()), |
481 &result); | 481 &result); |
482 | 482 |
483 // Get shell window views | 483 // Get shell window views |
484 GetShellWindowPagesForExtensionProfile(extension, &result); | 484 GetShellWindowPagesForExtensionProfile(extension, &result); |
485 | 485 |
486 // Include a link to start the lazy background page, if applicable. | 486 // Include a link to start the lazy background page, if applicable. |
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 return true; | 1341 return true; |
1342 } | 1342 } |
1343 | 1343 |
1344 DeveloperPrivateIsProfileManagedFunction:: | 1344 DeveloperPrivateIsProfileManagedFunction:: |
1345 ~DeveloperPrivateIsProfileManagedFunction() { | 1345 ~DeveloperPrivateIsProfileManagedFunction() { |
1346 } | 1346 } |
1347 | 1347 |
1348 } // namespace api | 1348 } // namespace api |
1349 | 1349 |
1350 } // namespace extensions | 1350 } // namespace extensions |
OLD | NEW |