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

Side by Side Diff: ios/chrome/browser/browser_state/test_chrome_browser_state.h

Issue 2852673002: Removed ChromeBrowserState::AsTestChromeBrowserState. (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_H_ 5 #ifndef IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_H_
6 #define IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_H_ 6 #define IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 net::SSLConfigService* GetSSLConfigService() override; 48 net::SSLConfigService* GetSSLConfigService() override;
49 PrefService* GetPrefs() override; 49 PrefService* GetPrefs() override;
50 PrefService* GetOffTheRecordPrefs() override; 50 PrefService* GetOffTheRecordPrefs() override;
51 ChromeBrowserStateIOData* GetIOData() override; 51 ChromeBrowserStateIOData* GetIOData() override;
52 void ClearNetworkingHistorySince(base::Time time, 52 void ClearNetworkingHistorySince(base::Time time,
53 const base::Closure& completion) override; 53 const base::Closure& completion) override;
54 net::URLRequestContextGetter* CreateRequestContext( 54 net::URLRequestContextGetter* CreateRequestContext(
55 ProtocolHandlerMap* protocol_handlers) override; 55 ProtocolHandlerMap* protocol_handlers) override;
56 net::URLRequestContextGetter* CreateIsolatedRequestContext( 56 net::URLRequestContextGetter* CreateIsolatedRequestContext(
57 const base::FilePath& partition_path) override; 57 const base::FilePath& partition_path) override;
58 TestChromeBrowserState* AsTestChromeBrowserState() override;
59 58
60 // This method is defined as empty following the paradigm of 59 // This method is defined as empty following the paradigm of
61 // TestingProfile::DestroyOffTheRecordProfile(). 60 // TestingProfile::DestroyOffTheRecordProfile().
62 void DestroyOffTheRecordChromeBrowserState() override {} 61 void DestroyOffTheRecordChromeBrowserState() override {}
63 62
64 // Creates a WebDataService. If not invoked, the web data service is null. 63 // Creates a WebDataService. If not invoked, the web data service is null.
65 void CreateWebDataService(); 64 void CreateWebDataService();
66 65
67 // Creates the BookmkarBarModel. If not invoked the bookmark bar model is 66 // Creates the BookmkarBarModel. If not invoked the bookmark bar model is
68 // NULL. If |delete_file| is true, the bookmarks file is deleted first, then 67 // NULL. If |delete_file| is true, the bookmarks file is deleted first, then
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 163
165 // The incognito ChromeBrowserState instance that is associated with this 164 // The incognito ChromeBrowserState instance that is associated with this
166 // non-incognito ChromeBrowserState instance. 165 // non-incognito ChromeBrowserState instance.
167 std::unique_ptr<TestChromeBrowserState> otr_browser_state_; 166 std::unique_ptr<TestChromeBrowserState> otr_browser_state_;
168 TestChromeBrowserState* original_browser_state_; 167 TestChromeBrowserState* original_browser_state_;
169 168
170 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserState); 169 DISALLOW_COPY_AND_ASSIGN(TestChromeBrowserState);
171 }; 170 };
172 171
173 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_H_ 172 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_TEST_CHROME_BROWSER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698