Index: components/omnibox/browser/shortcuts_database_unittest.cc |
diff --git a/components/omnibox/browser/shortcuts_database_unittest.cc b/components/omnibox/browser/shortcuts_database_unittest.cc |
index c98bdeb673397abc62695ec61d567572da25601c..2f151b116296a0f7abd66835cc0993710f200442 100644 |
--- a/components/omnibox/browser/shortcuts_database_unittest.cc |
+++ b/components/omnibox/browser/shortcuts_database_unittest.cc |
@@ -96,13 +96,13 @@ class ShortcutsDatabaseTest : public testing::Test { |
void AddAll(); |
+ base::ScopedTempDir temp_dir_; |
scoped_refptr<ShortcutsDatabase> db_; |
}; |
void ShortcutsDatabaseTest::SetUp() { |
- base::ScopedTempDir temp_dir; |
- ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); |
- base::FilePath db_path(temp_dir.path().Append(kShortcutsDatabaseName)); |
+ ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
+ base::FilePath db_path(temp_dir_.path().Append(kShortcutsDatabaseName)); |
db_ = new ShortcutsDatabase(db_path); |
ASSERT_TRUE(db_->Init()); |
ClearDB(); |