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

Unified Diff: chrome/browser/chromeos/login/signed_settings.cc

Issue 6873112: [Chrome OS] Re-enable fetching the owner's name via SignedSettings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/signed_settings.cc
diff --git a/chrome/browser/chromeos/login/signed_settings.cc b/chrome/browser/chromeos/login/signed_settings.cc
index a056097d0c7ec8a7c024a6cacee07fb3d47f07c6..8c8eb2393741b1a6b0a03baeba59b5a57efc3756 100644
--- a/chrome/browser/chromeos/login/signed_settings.cc
+++ b/chrome/browser/chromeos/login/signed_settings.cc
@@ -703,6 +703,11 @@ void RetrievePropertyOp::OnKeyOpComplete(
}
std::string RetrievePropertyOp::LookUpInPolicy(const std::string& prop) {
+ if (prop == kDeviceOwner) {
+ const em::PolicyData& data = service_->cached_policy();
+ if (data.has_username() && !data.has_request_token())
+ return service_->cached_policy().username()
Denis Lagno 2011/04/20 16:24:13 terminating semicolon missing
Chris Masone 2011/04/20 16:41:51 Done.
+ }
em::ChromeDeviceSettingsProto pol;
pol.ParseFromString(service_->cached_policy().policy_value());
if (prop == kAccountsPrefAllowNewUser) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698