Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1076)

Unified Diff: chrome/browser/history/shortcuts_database_unittest.cc

Issue 10701043: Make ShortcutsBackend a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/shortcuts_database_unittest.cc
===================================================================
--- chrome/browser/history/shortcuts_database_unittest.cc (revision 144929)
+++ chrome/browser/history/shortcuts_database_unittest.cc (working copy)
@@ -9,6 +9,7 @@
#include "base/time.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/history/shortcuts_database.h"
+#include "chrome/test/base/testing_profile.h"
#include "sql/statement.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -52,13 +53,13 @@
void AddAll();
- ScopedTempDir temp_dir_;
+ scoped_ptr<TestingProfile> profile_;
scoped_refptr<ShortcutsDatabase> db_;
};
void ShortcutsDatabaseTest::SetUp() {
- ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
- db_ = new ShortcutsDatabase(temp_dir_.path());
+ profile_.reset(new TestingProfile());
+ db_ = new ShortcutsDatabase(profile_.get());
ASSERT_TRUE(db_->Init());
ClearDB();
}

Powered by Google App Engine
This is Rietveld 408576698