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

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_api.cc

Issue 62713003: Move ExtensionProcessManager to src/extensions, part 4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/alert_apitest.cc ('k') | chrome/browser/extensions/api/extension_action/browser_action_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698