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

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

Issue 1113333003: Don't create a new profile when cleaning up stale ephemeral profiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fix 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
« no previous file with comments | « chrome/browser/ui/app_list/profile_store.h ('k') | chrome/browser/ui/app_list/test/fake_profile_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a11a68015a3bbd47d926293f1df82976a3d537be..3a5fcd321ffd50d1c3f95b200053fd6671969f33 100644
--- a/chrome/browser/ui/app_list/test/fake_profile_store.h
+++ b/chrome/browser/ui/app_list/test/fake_profile_store.h
@@ -13,7 +13,8 @@
class FakeProfileStore : public ProfileStore {
public:
- explicit FakeProfileStore(const base::FilePath& user_data_dir);
+ explicit FakeProfileStore(const base::FilePath& user_data_dir,
+ const std::string& last_used_profile);
~FakeProfileStore() override;
void LoadProfile(Profile* profile);
@@ -25,11 +26,13 @@ class FakeProfileStore : public ProfileStore {
base::Callback<void(Profile*)> callback) override;
Profile* GetProfileByPath(const base::FilePath& path) override;
base::FilePath GetUserDataDir() override;
+ std::string GetLastUsedProfileName() override;
bool IsProfileSupervised(const base::FilePath& path) override;
bool IsProfileLocked(const base::FilePath& path) override;
private:
base::FilePath user_data_dir_;
+ std::string last_used_profile_name_;
typedef std::map<base::FilePath, base::Callback<void(Profile*)> >
CallbacksByPath;
CallbacksByPath callbacks_;
« no previous file with comments | « chrome/browser/ui/app_list/profile_store.h ('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