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

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

Issue 337053005: Precache policy-for-extensions for device-local accounts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed ios tests Created 6 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/device_local_account_policy_service.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account_policy_service.cc b/chrome/browser/chromeos/policy/device_local_account_policy_service.cc
index 3009c9f708e78ccf8e1459608746627ebf14da04..7df40b3d0d008969a3f63b75086490f89ea66dc2 100644
--- a/chrome/browser/chromeos/policy/device_local_account_policy_service.cc
+++ b/chrome/browser/chromeos/policy/device_local_account_policy_service.cc
@@ -28,6 +28,7 @@
#include "chromeos/dbus/session_manager_client.h"
#include "chromeos/settings/cros_settings_names.h"
#include "chromeos/settings/cros_settings_provider.h"
+#include "components/policy/core/browser/browser_policy_connector.h"
#include "components/policy/core/common/cloud/cloud_policy_client.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h"
@@ -125,6 +126,7 @@ DeviceLocalAccountPolicyBroker::DeviceLocalAccountPolicyBroker(
user_id_(account.user_id),
component_policy_cache_path_(component_policy_cache_path),
store_(store.Pass()),
+ extension_tracker_(account, store_.get(), &schema_registry_),
external_data_manager_(external_data_manager),
core_(PolicyNamespaceKey(dm_protocol::kChromePublicAccountPolicyType,
store_->account_id()),
@@ -142,6 +144,9 @@ DeviceLocalAccountPolicyBroker::DeviceLocalAccountPolicyBroker(
// Unblock the |schema_registry_| so that the |component_policy_service_|
// starts using it.
+ schema_registry_.RegisterComponent(
+ PolicyNamespace(POLICY_DOMAIN_CHROME, ""),
bartfab (slow) 2014/06/23 09:53:37 Nit: #include "components/policy/core/common/polic
Joao da Silva 2014/07/16 11:47:52 Done.
+ g_browser_process->browser_policy_connector()->GetChromeSchema());
schema_registry_.SetReady(POLICY_DOMAIN_CHROME);
schema_registry_.SetReady(POLICY_DOMAIN_EXTENSIONS);
}

Powered by Google App Engine
This is Rietveld 408576698