From db7331aecb1f0c01aecf4cd4627d08a8d5b08bc2 Mon Sep 17 00:00:00 2001 From: "mpcomplete@chromium.org" Date: Thu, 25 Feb 2010 22:10:50 +0000 Subject: Allow users to enable extensions in incognito. Requires --enable-experimental-extension-apis . The UI needs work. Tab and window events are hooked up so that they work with incognito tabs/windows when enabled. BUG=32365 BUG=36292 Review URL: http://codereview.chromium.org/657041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40057 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extensions_ui.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'chrome/browser/extensions/extensions_ui.h') diff --git a/chrome/browser/extensions/extensions_ui.h b/chrome/browser/extensions/extensions_ui.h index cabc5be..decdc64 100644 --- a/chrome/browser/extensions/extensions_ui.h +++ b/chrome/browser/extensions/extensions_ui.h @@ -106,9 +106,11 @@ class ExtensionsDOMHandler virtual void RegisterMessages(); // Extension Detail JSON Struct for page. (static for ease of testing). + // Note: service can be NULL in unit tests. static DictionaryValue* CreateExtensionDetailValue( - const Extension *extension, - const std::vector&, + ExtensionsService* service, + const Extension* extension, + const std::vector& pages, bool enabled); // ContentScript JSON Struct for page. (static for ease of testing). @@ -143,6 +145,9 @@ class ExtensionsDOMHandler // Callback for "enable" message. void HandleEnableMessage(const Value* value); + // Callback for "enableIncognito" message. + void HandleEnableIncognitoMessage(const Value* value); + // Callback for "uninstall" message. void HandleUninstallMessage(const Value* value); -- cgit v1.1