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/component_updater/ev_whitelist_component_installer.h" | 5 #include "chrome/browser/component_updater/ev_whitelist_component_installer.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
| 18 #include "base/threading/sequenced_worker_pool.h" |
18 #include "base/version.h" | 19 #include "base/version.h" |
19 #include "components/component_updater/component_updater_paths.h" | 20 #include "components/component_updater/component_updater_paths.h" |
20 #include "components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.h" | 21 #include "components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.h" |
21 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
22 | 23 |
23 using component_updater::ComponentUpdateService; | 24 using component_updater::ComponentUpdateService; |
24 | 25 |
25 namespace { | 26 namespace { |
26 const base::FilePath::CharType kCompressedEVWhitelistFileName[] = | 27 const base::FilePath::CharType kCompressedEVWhitelistFileName[] = |
27 FILE_PATH_LITERAL("ev_hashes_whitelist.bin"); | 28 FILE_PATH_LITERAL("ev_hashes_whitelist.bin"); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 DefaultComponentInstaller* installer = | 155 DefaultComponentInstaller* installer = |
155 new DefaultComponentInstaller(std::move(traits)); | 156 new DefaultComponentInstaller(std::move(traits)); |
156 installer->Register(cus, base::Closure()); | 157 installer->Register(cus, base::Closure()); |
157 | 158 |
158 content::BrowserThread::PostAfterStartupTask( | 159 content::BrowserThread::PostAfterStartupTask( |
159 FROM_HERE, content::BrowserThread::GetBlockingPool(), | 160 FROM_HERE, content::BrowserThread::GetBlockingPool(), |
160 base::Bind(&DeleteWhitelistCopy, user_data_dir)); | 161 base::Bind(&DeleteWhitelistCopy, user_data_dir)); |
161 } | 162 } |
162 | 163 |
163 } // namespace component_updater | 164 } // namespace component_updater |
OLD | NEW |