OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/platform_keys/platform_keys_service_factory.h" | 5 #include "chrome/browser/chromeos/platform_keys/platform_keys_service_factory.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
14 #include "chrome/browser/chromeos/platform_keys/platform_keys_service.h" | 15 #include "chrome/browser/chromeos/platform_keys/platform_keys_service.h" |
15 #include "chrome/browser/extensions/extension_system_factory.h" | 16 #include "chrome/browser/extensions/extension_system_factory.h" |
16 #include "chrome/browser/policy/profile_policy_connector.h" | 17 #include "chrome/browser/policy/profile_policy_connector.h" |
17 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 18 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
18 #include "chrome/browser/profiles/incognito_helpers.h" | 19 #include "chrome/browser/profiles/incognito_helpers.h" |
19 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 110 |
110 PlatformKeysService* const service = new PlatformKeysService( | 111 PlatformKeysService* const service = new PlatformKeysService( |
111 policy_connector->IsManaged(), profile->GetPrefs(), | 112 policy_connector->IsManaged(), profile->GetPrefs(), |
112 policy_connector->policy_service(), context, store); | 113 policy_connector->policy_service(), context, store); |
113 | 114 |
114 service->SetSelectDelegate(make_scoped_ptr(new DefaultSelectDelegate())); | 115 service->SetSelectDelegate(make_scoped_ptr(new DefaultSelectDelegate())); |
115 return service; | 116 return service; |
116 } | 117 } |
117 | 118 |
118 } // namespace chromeos | 119 } // namespace chromeos |
OLD | NEW |