Index: chrome/browser/autocomplete/extension_app_provider_unittest.cc |
diff --git a/chrome/browser/autocomplete/extension_app_provider_unittest.cc b/chrome/browser/autocomplete/extension_app_provider_unittest.cc |
index 0ac201aca120570dcd129d83764b7041fd9d2474..f75c56d383b0d9b26a070aac5c9e602ca7cf02ce 100644 |
--- a/chrome/browser/autocomplete/extension_app_provider_unittest.cc |
+++ b/chrome/browser/autocomplete/extension_app_provider_unittest.cc |
@@ -26,7 +26,9 @@ class ExtensionAppProviderTest : public testing::Test { |
ExtensionAppProviderTest() |
: ui_thread_(content::BrowserThread::UI, &message_loop_), |
- history_service_(NULL) { } |
+ profile_(new TestingProfile), |
+ app_provider_(new ExtensionAppProvider(NULL, profile_.get())), |
+ history_service_(NULL) {} |
virtual ~ExtensionAppProviderTest() { } |
virtual void SetUp() OVERRIDE; |
@@ -37,21 +39,18 @@ class ExtensionAppProviderTest : public testing::Test { |
protected: |
base::MessageLoopForUI message_loop_; |
content::TestBrowserThread ui_thread_; |
- scoped_refptr<ExtensionAppProvider> app_provider_; |
scoped_ptr<TestingProfile> profile_; |
+ scoped_refptr<ExtensionAppProvider> app_provider_; |
HistoryService* history_service_; |
}; |
void ExtensionAppProviderTest::SetUp() { |
- profile_.reset(new TestingProfile()); |
ASSERT_TRUE(profile_->CreateHistoryService(true, false)); |
profile_->BlockUntilHistoryProcessesPendingRequests(); |
history_service_ = |
HistoryServiceFactory::GetForProfile(profile_.get(), |
Profile::EXPLICIT_ACCESS); |
- app_provider_ = new ExtensionAppProvider(NULL, profile_.get()); |
- |
struct TestExtensionApp { |
const char* app_name; |
const char* launch_url; |