| 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 f75c56d383b0d9b26a070aac5c9e602ca7cf02ce..0ac201aca120570dcd129d83764b7041fd9d2474 100644
|
| --- a/chrome/browser/autocomplete/extension_app_provider_unittest.cc
|
| +++ b/chrome/browser/autocomplete/extension_app_provider_unittest.cc
|
| @@ -26,9 +26,7 @@
|
|
|
| ExtensionAppProviderTest()
|
| : ui_thread_(content::BrowserThread::UI, &message_loop_),
|
| - profile_(new TestingProfile),
|
| - app_provider_(new ExtensionAppProvider(NULL, profile_.get())),
|
| - history_service_(NULL) {}
|
| + history_service_(NULL) { }
|
| virtual ~ExtensionAppProviderTest() { }
|
|
|
| virtual void SetUp() OVERRIDE;
|
| @@ -39,17 +37,20 @@
|
| 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;
|
|
|