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

Unified Diff: chrome/browser/ui/app_list/test/fake_profile_store.h

Issue 1134533007: Fixed AppListServceUnitTest so it tests what it says it's testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bauerb-profiles-ephemeral
Patch Set: Remove explicit. Created 5 years, 7 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/ui/app_list/test/fake_profile_store.h
diff --git a/chrome/browser/ui/app_list/test/fake_profile_store.h b/chrome/browser/ui/app_list/test/fake_profile_store.h
index 3a5fcd321ffd50d1c3f95b200053fd6671969f33..12061b07854fc7d60c99e636c1cecf0b8a76cbeb 100644
--- a/chrome/browser/ui/app_list/test/fake_profile_store.h
+++ b/chrome/browser/ui/app_list/test/fake_profile_store.h
@@ -11,10 +11,12 @@
#include "base/observer_list.h"
#include "chrome/browser/ui/app_list/profile_store.h"
+class PrefService;
+
class FakeProfileStore : public ProfileStore {
public:
- explicit FakeProfileStore(const base::FilePath& user_data_dir,
- const std::string& last_used_profile);
+ FakeProfileStore(const base::FilePath& user_data_dir,
+ PrefService* local_state);
~FakeProfileStore() override;
void LoadProfile(Profile* profile);
@@ -32,7 +34,7 @@ class FakeProfileStore : public ProfileStore {
private:
base::FilePath user_data_dir_;
- std::string last_used_profile_name_;
+ PrefService* local_state_;
typedef std::map<base::FilePath, base::Callback<void(Profile*)> >
CallbacksByPath;
CallbacksByPath callbacks_;
« no previous file with comments | « chrome/browser/ui/app_list/profile_loader_unittest.cc ('k') | chrome/browser/ui/app_list/test/fake_profile_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698