Index: components/autofill/content/browser/content_autofill_driver_unittest.cc |
diff --git a/components/autofill/content/browser/content_autofill_driver_unittest.cc b/components/autofill/content/browser/content_autofill_driver_unittest.cc |
index dce2817620b17308d4482716675a712844a96b9b..bc88e12f2ad08d02ce69f5bbc61d3807b397319c 100644 |
--- a/components/autofill/content/browser/content_autofill_driver_unittest.cc |
+++ b/components/autofill/content/browser/content_autofill_driver_unittest.cc |
@@ -23,6 +23,7 @@ |
#include "components/autofill/core/common/form_data_predictions.h" |
#include "content/public/browser/browser_context.h" |
#include "content/public/browser/navigation_details.h" |
+#include "content/public/browser/storage_partition.h" |
#include "content/public/browser/web_contents.h" |
#include "content/public/common/frame_navigate_params.h" |
#include "content/public/test/mock_render_process_host.h" |
@@ -204,7 +205,8 @@ TEST_F(ContentAutofillDriverTest, GetURLRequestContext) { |
net::URLRequestContextGetter* request_context = |
driver_->GetURLRequestContext(); |
net::URLRequestContextGetter* expected_request_context = |
- web_contents()->GetBrowserContext()->GetRequestContext(); |
+ content::BrowserContext::GetDefaultStoragePartition( |
+ web_contents()->GetBrowserContext())->GetURLRequestContext(); |
EXPECT_EQ(request_context, expected_request_context); |
} |