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

Unified Diff: content/public/test/test_browser_context.h

Issue 2766263003: Extensions: Only load incognito-enabled extensions in an incognito renderer. (Closed)
Patch Set: Rebase. Created 3 years, 9 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: content/public/test/test_browser_context.h
diff --git a/content/public/test/test_browser_context.h b/content/public/test/test_browser_context.h
index 41af84b31d888ac9e399c7b0584fb46378383df0..397c7ee9954e2db6acf14bdf63048b8044118381 100644
--- a/content/public/test/test_browser_context.h
+++ b/content/public/test/test_browser_context.h
@@ -72,6 +72,19 @@ class TestBrowserContext : public BrowserContext {
DISALLOW_COPY_AND_ASSIGN(TestBrowserContext);
};
+// An incognito version of a TestBrowserContext.
+class TestBrowserContextIncognito : public TestBrowserContext {
+ public:
+ TestBrowserContextIncognito();
+ ~TestBrowserContextIncognito() override;
+
+ // TestBrowserContext implementation.
+ bool IsOffTheRecord() const override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestBrowserContextIncognito);
+};
+
} // namespace content
#endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698