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

Side by Side Diff: chrome/browser/chromeos/policy/device_local_account_policy_store.cc

Issue 2273783002: Move policy generated files to components/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed headers Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/policy/device_local_account_policy_store.h" 5 #include "chrome/browser/chromeos/policy/device_local_account_policy_store.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 13 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
14 #include "chromeos/dbus/session_manager_client.h" 14 #include "chromeos/dbus/session_manager_client.h"
15 #include "components/ownership/owner_key_util.h" 15 #include "components/ownership/owner_key_util.h"
16 #include "components/policy/core/common/cloud/device_management_service.h" 16 #include "components/policy/core/common/cloud/device_management_service.h"
17 #include "components/policy/core/common/external_data_fetcher.h" 17 #include "components/policy/core/common/external_data_fetcher.h"
18 #include "components/policy/core/common/policy_map.h" 18 #include "components/policy/core/common/policy_map.h"
19 #include "components/policy/core/common/policy_types.h" 19 #include "components/policy/core/common/policy_types.h"
20 #include "policy/proto/cloud_policy.pb.h" 20 #include "components/policy/proto/cloud_policy.pb.h"
21 #include "policy/proto/device_management_backend.pb.h" 21 #include "components/policy/proto/device_management_backend.pb.h"
22 22
23 namespace em = enterprise_management; 23 namespace em = enterprise_management;
24 24
25 namespace policy { 25 namespace policy {
26 26
27 DeviceLocalAccountPolicyStore::DeviceLocalAccountPolicyStore( 27 DeviceLocalAccountPolicyStore::DeviceLocalAccountPolicyStore(
28 const std::string& account_id, 28 const std::string& account_id,
29 chromeos::SessionManagerClient* session_manager_client, 29 chromeos::SessionManagerClient* session_manager_client,
30 chromeos::DeviceSettingsService* device_settings_service, 30 chromeos::DeviceSettingsService* device_settings_service,
31 scoped_refptr<base::SequencedTaskRunner> background_task_runner) 31 scoped_refptr<base::SequencedTaskRunner> background_task_runner)
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 policy::BrowserPolicyConnectorChromeOS* connector = 173 policy::BrowserPolicyConnectorChromeOS* connector =
174 g_browser_process->platform_part()->browser_policy_connector_chromeos(); 174 g_browser_process->platform_part()->browser_policy_connector_chromeos();
175 validator->ValidateSignature(key->as_string(), 175 validator->ValidateSignature(key->as_string(),
176 GetPolicyVerificationKey(), 176 GetPolicyVerificationKey(),
177 connector->GetEnterpriseDomain(), 177 connector->GetEnterpriseDomain(),
178 false); 178 false);
179 validator.release()->StartValidation(callback); 179 validator.release()->StartValidation(callback);
180 } 180 }
181 181
182 } // namespace policy 182 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698