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

Unified Diff: chrome/browser/chromeos/policy/enterprise_install_attributes.h

Issue 2252173002: Make EnterpriseInstallAttributes::GetRegistrationUser() private. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/chromeos/policy/enterprise_install_attributes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/enterprise_install_attributes.h
diff --git a/chrome/browser/chromeos/policy/enterprise_install_attributes.h b/chrome/browser/chromeos/policy/enterprise_install_attributes.h
index 3fb7b903a10779944002b27aab51504629e78e47..8863a372ca5e656296efd6b56a0d4673826c4699 100644
--- a/chrome/browser/chromeos/policy/enterprise_install_attributes.h
+++ b/chrome/browser/chromeos/policy/enterprise_install_attributes.h
@@ -84,10 +84,6 @@ class EnterpriseInstallAttributes {
// not an enterprise device.
std::string GetDomain() const;
- // Gets the user that registered the device. Returns an empty string if the
- // device is not an enterprise device.
- std::string GetRegistrationUser();
-
// Gets the device id that was generated when the device was registered.
// Returns an empty string if the device is not an enterprise device or the
// device id was not stored in the lockbox (prior to R19).
@@ -119,9 +115,12 @@ class EnterpriseInstallAttributes {
private:
FRIEND_TEST_ALL_PREFIXES(EnterpriseInstallAttributesTest,
DeviceLockedFromOlderVersion);
+ FRIEND_TEST_ALL_PREFIXES(EnterpriseInstallAttributesTest,
+ GetRegistrationUser);
FRIEND_TEST_ALL_PREFIXES(EnterpriseInstallAttributesTest, Init);
FRIEND_TEST_ALL_PREFIXES(EnterpriseInstallAttributesTest,
InitForConsumerKiosk);
+ FRIEND_TEST_ALL_PREFIXES(EnterpriseInstallAttributesTest, LockCanonicalize);
FRIEND_TEST_ALL_PREFIXES(EnterpriseInstallAttributesTest,
VerifyFakeInstallAttributesCache);
@@ -181,6 +180,10 @@ class EnterpriseInstallAttributes {
chromeos::DBusMethodCallStatus call_status,
bool result);
+ // Gets the user that registered the device. Returns an empty string if the
+ // device is not an enterprise device.
+ std::string GetRegistrationUser() const;
+
chromeos::CryptohomeClient* cryptohome_client_;
base::WeakPtrFactory<EnterpriseInstallAttributes> weak_ptr_factory_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/enterprise_install_attributes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698