| Index: chrome/browser/browsing_data_indexed_db_helper_browsertest.cc
|
| diff --git a/chrome/browser/browsing_data_indexed_db_helper_browsertest.cc b/chrome/browser/browsing_data_indexed_db_helper_browsertest.cc
|
| index 7cc5a30390576443e441b7fee6412b0ee93a992d..ef1c999d381478965fa090e4c74a7599e414cde4 100644
|
| --- a/chrome/browser/browsing_data_indexed_db_helper_browsertest.cc
|
| +++ b/chrome/browser/browsing_data_indexed_db_helper_browsertest.cc
|
| @@ -14,6 +14,7 @@
|
| #include "chrome/browser/browsing_data_indexed_db_helper.h"
|
| #include "chrome/test/in_process_browser_test.h"
|
| #include "chrome/test/testing_profile.h"
|
| +#include "content/browser/mock_resource_context.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| namespace {
|
| @@ -21,6 +22,14 @@ typedef BrowsingDataHelperCallback<BrowsingDataIndexedDBHelper::IndexedDBInfo>
|
| TestCompletionCallback;
|
|
|
| class BrowsingDataIndexedDBHelperTest : public InProcessBrowserTest {
|
| + public:
|
| + virtual void SetUpOnMainThread() {
|
| + // Make sure TestURLRequestContext gets initliazed early enough (it needs to
|
| + // be constructed in the UI thread). Normally Profile's URLRequestContext is
|
| + // initialized early enough, but the same is not true for the
|
| + // TestingProfile.
|
| + content::MockResourceContext::GetInstance();
|
| + }
|
| protected:
|
| TestingProfile testing_profile_;
|
| };
|
|
|