Chromium Code Reviews| 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())), |
|
not at google - send to devlin
2014/05/12 17:59:00
typically we do leave this sort of initialization
Peter Kasting
2014/05/12 19:46:55
The two should be equivalent, and if you _can_ ini
limasdf
2014/05/13 14:38:44
Interestingly, the result is different. the origin
|
| + 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; |