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

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

Issue 566933005: Do not display lock for hosted domains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improved tests, more comments Created 6 years, 3 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/profiles_state.h
diff --git a/chrome/browser/profiles/profiles_state.h b/chrome/browser/profiles/profiles_state.h
index 39aae3dafd1cf9fe98f3d939c46391df649b5e08..5ddef6a5ee0f5c331b5c485cf7ffa9e4abec7ee6 100644
--- a/chrome/browser/profiles/profiles_state.h
+++ b/chrome/browser/profiles/profiles_state.h
@@ -16,6 +16,11 @@ namespace base { class FilePath; }
namespace profiles {
+// The determining factor around whether lock needs to be updated will change
+// over time.
+// Version 1 - non-hosted domains (gmail.com) and google.com permitted only.
+const int kCurrentLockAlgorithmVersion = 1;
+
// Checks if multiple profiles is enabled.
bool IsMultipleProfilesEnabled();
@@ -59,9 +64,13 @@ std::vector<std::string> GetSecondaryAccountsForProfile(
// incognito profiles.
bool IsRegularOrGuestSession(Browser* browser);
+// If the lock-enabled information for this profile is not up to date, starts
+// an update for the Gaia profile info.
+void UpdateIsProfileLockEnabledIfNeeded(Profile* profile);
+
// If the --google-profile-info flag is turned on, starts an update for a new
-// version of the Gaia profile picture.
-void UpdateGaiaProfilePhotoIfNeeded(Profile* profile);
+// version of the Gaia profile picture and other profile info.
+void UpdateGaiaProfileInfoIfNeeded(Profile* profile);
// Returns the sign-in error controller for the given profile. Some profiles,
// like guest profiles, may not have a controller so this function may return

Powered by Google App Engine
This is Rietveld 408576698