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

Unified Diff: chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc

Issue 2488573003: Expose signing key from cloud policy stores (Closed)
Patch Set: Simplify changes in DeviceLocalAccountPolicyStore Created 4 years, 1 month 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/device_cloud_policy_store_chromeos_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc b/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc
index b3bfde5f21bf78f3fa2c780e86239b174fc0ab6d..c1b53fd5f7bdf4d7cc178c0ef27e1a526dc84cad 100644
--- a/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc
+++ b/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc
@@ -198,6 +198,10 @@ void DeviceCloudPolicyStoreChromeOS::UpdateFromService() {
}
policy_map_.Swap(&new_policy_map);
+ scoped_refptr<ownership::PublicKey> key =
+ device_settings_service_->GetPublicKey();
+ public_key_ = key ? key->as_string() : std::string();
Thiemo Nagel 2016/11/16 16:50:06 public_key_ doesn't seem to exist yet?
emaxx 2016/11/16 22:05:58 Nope, it's defined in the base class CloudPolicySt
Thiemo Nagel 2016/11/17 17:19:56 Sorry, I've overlooked that.
+
NotifyStoreLoaded();
return;
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698