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

Unified Diff: chrome/browser/chromeos/policy/browser_policy_connector_chromeos.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: chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h
diff --git a/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h b/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h
index fe342d8ccbe18ee9199f39d6292c5282e82d38b5..b9e991e8c9d78637121a1c3796c341dc49048de3 100644
--- a/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h
+++ b/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h
@@ -22,6 +22,10 @@ namespace net {
class URLRequestContextGetter;
}
+namespace user_manager {
+class UserID;
+}
+
namespace policy {
class AffiliatedCloudPolicyInvalidator;
@@ -79,9 +83,9 @@ class BrowserPolicyConnectorChromeOS
// for details.
EnrollmentConfig GetPrescribedEnrollmentConfig() const;
- // Works out the user affiliation by checking the given |user_name| against
+ // Works out the user affiliation by checking the given |user_id| against
// the installation attributes.
- UserAffiliation GetUserAffiliation(const std::string& user_name);
+ UserAffiliation GetUserAffiliation(const user_manager::UserID& user_id);
DeviceCloudPolicyManagerChromeOS* GetDeviceCloudPolicyManager() {
return device_cloud_policy_manager_;

Powered by Google App Engine
This is Rietveld 408576698