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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 10907243: Add "inspect background page" to platform app right-click menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add test for app loaded from .crx Created 8 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index bd285fb73131a7ca100ae7d21d192affd120c486..4b1d6fcedcdab012212edc202ae48cb13ec67974 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -618,6 +618,10 @@ class ExtensionService
static void RecordPermissionMessagesHistogram(
const extensions::Extension* e, const char* histogram);
+ // Open a dev tools window for the background page for the given extension,
+ // starting the background page first if necesary.
+ void InspectBackgroundPage(const extensions::Extension* extension);
+
#if defined(UNIT_TEST)
void TrackTerminatedExtensionForTest(const extensions::Extension* extension) {
TrackTerminatedExtension(extension);
@@ -726,6 +730,9 @@ class ExtensionService
// Launches the platform app associated with |extension_host|.
static void LaunchApplication(extensions::ExtensionHost* extension_host);
+ // Helper to inspect an ExtensionHost after it has been loaded.
+ void InspectExtensionHost(extensions::ExtensionHost* host);
+
// The normal profile associated with this ExtensionService.
Profile* profile_;

Powered by Google App Engine
This is Rietveld 408576698