Index: chrome/browser/history/shortcuts_database_unittest.cc |
diff --git a/chrome/browser/history/shortcuts_database_unittest.cc b/chrome/browser/history/shortcuts_database_unittest.cc |
index dd3a322a0cafe176c8e12ae6c0558e368db7fd67..72b5c178ac2d7a6094ec9016def58e61ca4e8f59 100644 |
--- a/chrome/browser/history/shortcuts_database_unittest.cc |
+++ b/chrome/browser/history/shortcuts_database_unittest.cc |
@@ -9,6 +9,7 @@ |
#include "base/time/time.h" |
#include "chrome/browser/history/shortcuts_database.h" |
#include "chrome/test/base/testing_profile.h" |
+#include "content/public/test/test_browser_thread_bundle.h" |
#include "sql/statement.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -52,11 +53,13 @@ class ShortcutsDatabaseTest : public testing::Test { |
void AddAll(); |
+ scoped_ptr<content::TestBrowserThreadBundle> thread_bundle_; |
scoped_ptr<TestingProfile> profile_; |
scoped_refptr<ShortcutsDatabase> db_; |
}; |
void ShortcutsDatabaseTest::SetUp() { |
+ thread_bundle_.reset(new content::TestBrowserThreadBundle()); |
profile_.reset(new TestingProfile()); |
db_ = new ShortcutsDatabase(profile_.get()); |
ASSERT_TRUE(db_->Init()); |