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

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

Issue 72793003: ComponentCloudPolicyService tracks the signin state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
Index: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc
index 43e8e3b9098b1ee9654c4c3a1b859b1162de1c20..f15d889b97670bc3f0d9f36d2f6996cd41bd1834 100644
--- a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc
+++ b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc
@@ -20,8 +20,8 @@
#include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h"
#include "chrome/browser/policy/cloud/resource_cache.h"
#include "chrome/browser/policy/policy_bundle.h"
-#include "chrome/common/chrome_switches.h"
#include "components/policy/core/common/policy_pref_names.h"
+#include "components/policy/core/common/policy_switches.h"
#include "content/public/browser/browser_thread.h"
#include "net/url_request/url_request_context_getter.h"
@@ -232,10 +232,6 @@ void UserCloudPolicyManagerChromeOS::OnClientError(
CancelWaitForPolicyFetch();
}
-void UserCloudPolicyManagerChromeOS::OnComponentCloudPolicyRefreshNeeded() {
- core()->RefreshSoon();
-}
-
void UserCloudPolicyManagerChromeOS::OnComponentCloudPolicyUpdated() {
CheckAndPublishPolicy();
StartRefreshSchedulerIfReady();
@@ -264,9 +260,8 @@ void UserCloudPolicyManagerChromeOS::CreateComponentCloudPolicyService(
component_policy_service_.reset(new ComponentCloudPolicyService(
this,
schema_registry(),
- store_.get(),
+ core(),
resource_cache.Pass(),
- client(),
request_context,
backend_task_runner,
content::BrowserThread::GetMessageLoopProxyForThread(

Powered by Google App Engine
This is Rietveld 408576698