| 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..2a2e3e4380065e09887e2db4be12691022beb26b 100644
|
| --- a/content/public/test/test_browser_context.h
|
| +++ b/content/public/test/test_browser_context.h
|
| @@ -35,6 +35,12 @@ class TestBrowserContext : public BrowserContext {
|
| std::unique_ptr<PermissionManager> permission_manager);
|
| net::URLRequestContextGetter* GetRequestContext();
|
|
|
| + // Allow clients to make this an incognito context.
|
| + void set_is_off_the_record(bool is_off_the_record) {
|
| + is_off_the_record_ = is_off_the_record;
|
| + }
|
| +
|
| + // BrowserContext implementation.
|
| base::FilePath GetPath() const override;
|
| std::unique_ptr<ZoomLevelDelegate> CreateZoomLevelDelegate(
|
| const base::FilePath& partition_path) override;
|
| @@ -68,6 +74,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);
|
| };
|
|
|