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

Unified Diff: chrome/browser/profiles/profile_list.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/profiles/profile_list.h
diff --git a/chrome/browser/profiles/profile_list.h b/chrome/browser/profiles/profile_list.h
index 7092d209b0c063a5489c6066afbd57779959ae33..043a372ae917ba87ee6007f8190e3a79a13f6f15 100644
--- a/chrome/browser/profiles/profile_list.h
+++ b/chrome/browser/profiles/profile_list.h
@@ -7,14 +7,14 @@
#include "chrome/browser/profiles/avatar_menu.h"
-class ProfileInfoInterface;
+class ProfileAttributesStorage;
// This model represents the profiles added to Chrome.
class ProfileList {
public:
virtual ~ProfileList() {}
- static ProfileList* Create(ProfileInfoInterface* profile_cache);
+ static ProfileList* Create(ProfileAttributesStorage* profile_storage);
// Returns the number of profiles in the model.
virtual size_t GetNumberOfItems() const = 0;
@@ -26,7 +26,7 @@ class ProfileList {
virtual void RebuildMenu() = 0;
// Returns the index in the menu of the specified profile.
- virtual size_t MenuIndexFromProfileIndex(size_t index) = 0;
+ virtual size_t MenuIndexFromProfilePath(const base::FilePath& path) = 0;
// Updates the path of the active browser's profile.
virtual void ActiveProfilePathChanged(base::FilePath& path) = 0;

Powered by Google App Engine
This is Rietveld 408576698