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

Unified Diff: chrome/browser/chromeos/profiles/profile_list_chromeos.h

Issue 1242793005: Refactor most c/b/profiles calls to ProfileInfoCache. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows unit test and ChromeOS build Created 5 years, 5 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/chromeos/profiles/profile_list_chromeos.h
diff --git a/chrome/browser/chromeos/profiles/profile_list_chromeos.h b/chrome/browser/chromeos/profiles/profile_list_chromeos.h
index 65e3bd744901ee46ceeca8e87f97c3750c0b414c..01a48c5910c2ee14f3356d03a9923500ea9d5c80 100644
--- a/chrome/browser/chromeos/profiles/profile_list_chromeos.h
+++ b/chrome/browser/chromeos/profiles/profile_list_chromeos.h
@@ -9,21 +9,21 @@
#include <vector>
-class ProfileInfoInterface;
+class ProfileAttributesStorage;
namespace chromeos {
// This model represents profiles corresponding to logged-in ChromeOS users.
class ProfileListChromeOS : public ProfileList {
public:
- explicit ProfileListChromeOS(ProfileInfoInterface* profile_cache);
+ explicit ProfileListChromeOS(ProfileAttributesStorage* profile_storage);
~ProfileListChromeOS() override;
// ProfileList overrides:
size_t GetNumberOfItems() const override;
const AvatarMenu::Item& GetItemAt(size_t index) const override;
void RebuildMenu() override;
- size_t MenuIndexFromProfileIndex(size_t index) override;
+ size_t MenuIndexFromProfilePath(const base::FilePath& path) override;
void ActiveProfilePathChanged(base::FilePath& path) override;
private:
@@ -31,7 +31,7 @@ class ProfileListChromeOS : public ProfileList {
void SortMenu();
// The cache that provides the profile information. Weak.
- ProfileInfoInterface* profile_info_;
+ ProfileAttributesStorage* profile_storage_;
// The path of the currently active profile.
base::FilePath active_profile_path_;

Powered by Google App Engine
This is Rietveld 408576698