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

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

Issue 2798503002: Extensions: Pull duplicated functionality into ExtensionsTest fixture. (Closed)
Patch Set: Nits Created 3 years, 8 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
« no previous file with comments | « no previous file | content/public/test/test_browser_context.cc » ('j') | extensions/browser/extensions_test.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ec4c5091c93a1794a789e2339048bd5956224389 100644
--- a/content/public/test/test_browser_context.h
+++ b/content/public/test/test_browser_context.h
@@ -35,6 +35,10 @@ class TestBrowserContext : public BrowserContext {
std::unique_ptr<PermissionManager> permission_manager);
net::URLRequestContextGetter* GetRequestContext();
+ // Allow clients to make this an incognito context.
+ void SetOffTheRecord(bool is_off_the_record);
sky 2017/04/05 02:56:55 set_is_off_the_record() and inline.
karandeepb 2017/04/05 20:25:48 Done.
+
+ // BrowserContext implementation.
base::FilePath GetPath() const override;
std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate(
const base::FilePath& partition_path) override;
@@ -68,6 +72,7 @@ class TestBrowserContext : public BrowserContext {
std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_;
std::unique_ptr<PermissionManager> permission_manager_;
std::unique_ptr<MockBackgroundSyncController> background_sync_controller_;
+ bool is_off_the_record_ = false;
DISALLOW_COPY_AND_ASSIGN(TestBrowserContext);
};
« no previous file with comments | « no previous file | content/public/test/test_browser_context.cc » ('j') | extensions/browser/extensions_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698