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

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: fix clang, win 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 return view; 478 return view;
479 } 479 }
480 480
481 ItemInspectViewList DeveloperPrivateGetItemsInfoFunction:: 481 ItemInspectViewList DeveloperPrivateGetItemsInfoFunction::
482 GetInspectablePagesForExtension( 482 GetInspectablePagesForExtension(
483 const Extension* extension, 483 const Extension* extension,
484 bool extension_is_enabled) { 484 bool extension_is_enabled) {
485 485
486 ItemInspectViewList result; 486 ItemInspectViewList result;
487 // Get the extension process's active views. 487 // Get the extension process's active views.
488 ExtensionProcessManager* process_manager = 488 extensions::ProcessManager* process_manager =
489 ExtensionSystem::Get(GetProfile())->process_manager(); 489 ExtensionSystem::Get(GetProfile())->process_manager();
490 GetInspectablePagesForExtensionProcess( 490 GetInspectablePagesForExtensionProcess(
491 extension, 491 extension,
492 process_manager->GetRenderViewHostsForExtension(extension->id()), 492 process_manager->GetRenderViewHostsForExtension(extension->id()),
493 &result); 493 &result);
494 494
495 // Get shell window views 495 // Get shell window views
496 GetShellWindowPagesForExtensionProfile(extension, &result); 496 GetShellWindowPagesForExtensionProfile(extension, &result);
497 497
498 // Include a link to start the lazy background page, if applicable. 498 // Include a link to start the lazy background page, if applicable.
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
1353 return true; 1353 return true;
1354 } 1354 }
1355 1355
1356 DeveloperPrivateIsProfileManagedFunction:: 1356 DeveloperPrivateIsProfileManagedFunction::
1357 ~DeveloperPrivateIsProfileManagedFunction() { 1357 ~DeveloperPrivateIsProfileManagedFunction() {
1358 } 1358 }
1359 1359
1360 } // namespace api 1360 } // namespace api
1361 1361
1362 } // namespace extensions 1362 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698