| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/arc/arc_policy_bridge.h" | 5 #include "chrome/browser/chromeos/arc/policy/arc_policy_bridge.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
| 12 #include "base/json/json_string_value_serializer.h" | 12 #include "base/json/json_string_value_serializer.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 user_manager::UserManager::Get()->GetPrimaryUser(); | 310 user_manager::UserManager::Get()->GetPrimaryUser(); |
| 311 Profile* const profile = | 311 Profile* const profile = |
| 312 chromeos::ProfileHelper::Get()->GetProfileByUser(primary_user); | 312 chromeos::ProfileHelper::Get()->GetProfileByUser(primary_user); |
| 313 auto* profile_policy_connector = | 313 auto* profile_policy_connector = |
| 314 policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile); | 314 policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile); |
| 315 policy_service_ = profile_policy_connector->policy_service(); | 315 policy_service_ = profile_policy_connector->policy_service(); |
| 316 is_managed_ = profile_policy_connector->IsManaged(); | 316 is_managed_ = profile_policy_connector->IsManaged(); |
| 317 } | 317 } |
| 318 | 318 |
| 319 } // namespace arc | 319 } // namespace arc |
| OLD | NEW |