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

Unified Diff: chrome/browser/extensions/api/developer_private/developer_private_api.h

Issue 12317036: Add API in developerPrivate to allow/ disallow incognito mode. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: comments Created 7 years, 10 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/api/developer_private/developer_private_api.h
diff --git a/chrome/browser/extensions/api/developer_private/developer_private_api.h b/chrome/browser/extensions/api/developer_private/developer_private_api.h
index 849bb3d698a007c92f805d4f3e28a623f62679b3..7f42253d2375742ce972770387d9eddcecd6be32 100644
--- a/chrome/browser/extensions/api/developer_private/developer_private_api.h
+++ b/chrome/browser/extensions/api/developer_private/developer_private_api.h
@@ -163,6 +163,18 @@ class DeveloperPrivateAllowFileAccessFunction : public SyncExtensionFunction {
virtual bool RunImpl() OVERRIDE;
};
+class DeveloperPrivateAllowIncognitoFunction : public SyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("developerPrivate.allowIncognito",
+ DEVELOPERPRIVATE_ALLOWINCOGNITO);
+
+ protected:
+ virtual ~DeveloperPrivateAllowIncognitoFunction();
+
+ // ExtensionFunction:
+ virtual bool RunImpl() OVERRIDE;
+};
+
class DeveloperPrivateReloadFunction : public SyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("developerPrivate.reload",

Powered by Google App Engine
This is Rietveld 408576698