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

Unified Diff: chrome/browser/profiles/profiles_state.h

Issue 128513002: Refactor the code that creates the list of secondary accounts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « no previous file | chrome/browser/profiles/profiles_state.cc » ('j') | chrome/browser/profiles/profiles_state.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profiles_state.h
diff --git a/chrome/browser/profiles/profiles_state.h b/chrome/browser/profiles/profiles_state.h
index 782fb3adf330a84dd0f469922125cd1fb5579fff..4420b2e689f33f2efca1d4bd8c9ec0b50a7185bd 100644
--- a/chrome/browser/profiles/profiles_state.h
+++ b/chrome/browser/profiles/profiles_state.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
#define CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
+#include <vector>
#include "base/strings/string16.h"
class Browser;
@@ -35,6 +36,12 @@ base::string16 GetActiveProfileDisplayName(Browser* browser);
void UpdateProfileName(Profile* profile,
const base::string16& new_profile_name);
+// Returns the list of secondary accounts for a specific |profile|, which is
+// all the accounts associated with the profile that are not equal to
+// the |primary_account|.
+std::vector<std::string> GetSecondaryAccountsForProfile(
+ Profile* profile, const std::string& primary_account);
+
} // namespace profiles
#endif // CHROME_BROWSER_PROFILES_PROFILES_STATE_H_
« no previous file with comments | « no previous file | chrome/browser/profiles/profiles_state.cc » ('j') | chrome/browser/profiles/profiles_state.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698