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

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

Issue 846453006: Switch DeviceCloudPolicyInvalidator to shared InvalidationService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@f_1_442800_extract_affiliated_invalidation_service_provider
Patch Set: Fixed test. Created 5 years, 11 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/device_cloud_policy_invalidator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc b/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc
index 9c91387186a79d425e716c1036179d5144d7e031..06f3d1474a20e6c9c85afb8a086142e3f1574357 100644
--- a/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc
+++ b/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc
@@ -191,7 +191,8 @@ void BrowserPolicyConnectorChromeOS::Init(
content::BrowserThread::IO),
request_context));
device_local_account_policy_service_->Connect(device_management_service());
- device_cloud_policy_invalidator_.reset(new DeviceCloudPolicyInvalidator);
+ device_cloud_policy_invalidator_.reset(new DeviceCloudPolicyInvalidator(
+ affiliated_invalidation_service_provider_.get()));
SetTimezoneIfPolicyAvailable();
@@ -211,18 +212,9 @@ void BrowserPolicyConnectorChromeOS::PreShutdown() {
// the DeviceOAuth2TokenService that is destroyed before Shutdown() is called.
if (affiliated_invalidation_service_provider_)
affiliated_invalidation_service_provider_->Shutdown();
-
- // Let the |device_cloud_policy_invalidator_| unregister itself as an
- // observer of per-Profile InvalidationServices and the device-global
- // invalidation::TiclInvalidationService it may have created as an observer of
- // the DeviceOAuth2TokenService that is destroyed before Shutdown() is called.
- device_cloud_policy_invalidator_.reset();
}
void BrowserPolicyConnectorChromeOS::Shutdown() {
- // Verify that PreShutdown() has been called first.
- DCHECK(!device_cloud_policy_invalidator_);
-
network_configuration_updater_.reset();
if (device_local_account_policy_service_)
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_cloud_policy_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698