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

Unified Diff: components/policy/core/browser/browser_policy_connector.h

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: components/policy/core/browser/browser_policy_connector.h
diff --git a/components/policy/core/browser/browser_policy_connector.h b/components/policy/core/browser/browser_policy_connector.h
index 2c4307d3f711259ac557d154a1ba59a60f3b9a3f..bc270414a05b3bfb59faec1a60e6c0ebf29d24d1 100644
--- a/components/policy/core/browser/browser_policy_connector.h
+++ b/components/policy/core/browser/browser_policy_connector.h
@@ -23,6 +23,10 @@ namespace net {
class URLRequestContextGetter;
}
+namespace user_manager {
+class UserID;
+}
+
namespace policy {
class ConfigurationPolicyProvider;
@@ -90,8 +94,8 @@ class POLICY_EXPORT BrowserPolicyConnector {
// Check whether a user is known to be non-enterprise. Domains such as
// gmail.com and googlemail.com are known to not be managed. Also returns
- // false if the username is empty.
- static bool IsNonEnterpriseUser(const std::string& username);
+ // false if the user email is empty.
+ static bool IsNonEnterpriseUser(const user_manager::UserID& user_id);
// Returns the URL for the device management service endpoint.
static std::string GetDeviceManagementUrl();

Powered by Google App Engine
This is Rietveld 408576698