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

Unified Diff: chrome/browser/policy/profile_policy_connector_unittest.cc

Issue 2714493002: Load DeviceLocalAccount policy and DeviceSettings immediately on restore after Chrome crash. (Closed)
Patch Set: wrap Validator in unique_ptr Created 3 years, 10 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 | « chrome/browser/policy/profile_policy_connector_factory.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/profile_policy_connector_unittest.cc
diff --git a/chrome/browser/policy/profile_policy_connector_unittest.cc b/chrome/browser/policy/profile_policy_connector_unittest.cc
index cc56a8e9c3167f556a4139a67a942e9db422d150..7ebe705c5fcc0307839f52bf4e84e38757d51e50 100644
--- a/chrome/browser/policy/profile_policy_connector_unittest.cc
+++ b/chrome/browser/policy/profile_policy_connector_unittest.cc
@@ -64,7 +64,7 @@ class ProfilePolicyConnectorTest : public testing::Test {
TEST_F(ProfilePolicyConnectorTest, IsManagedForManagedUsers) {
ProfilePolicyConnector connector;
connector.Init(nullptr /* user */, &schema_registry_,
- cloud_policy_manager_.get(), &cloud_policy_store_);
+ cloud_policy_manager_.get(), &cloud_policy_store_, false);
EXPECT_FALSE(connector.IsManaged());
EXPECT_EQ(connector.GetManagementDomain(), "");
@@ -82,7 +82,7 @@ TEST_F(ProfilePolicyConnectorTest, IsManagedForManagedUsers) {
TEST_F(ProfilePolicyConnectorTest, IsProfilePolicy) {
ProfilePolicyConnector connector;
connector.Init(nullptr /* user */, &schema_registry_,
- cloud_policy_manager_.get(), &cloud_policy_store_);
+ cloud_policy_manager_.get(), &cloud_policy_store_, false);
// No policy is set initially.
EXPECT_FALSE(connector.IsProfilePolicy(autofill::prefs::kAutofillEnabled));
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_factory.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698