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

Side by Side Diff: chrome/browser/component_updater/ev_whitelist_component_installer.cc

Issue 2691263002: Revert of Remove header dependencies from sequence_checker.h to sequenced_worker_pool.h (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
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"
19 #include "base/version.h" 18 #include "base/version.h"
20 #include "components/component_updater/component_updater_paths.h" 19 #include "components/component_updater/component_updater_paths.h"
21 #include "components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.h" 20 #include "components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.h"
22 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
23 22
24 using component_updater::ComponentUpdateService; 23 using component_updater::ComponentUpdateService;
25 24
26 namespace { 25 namespace {
27 const base::FilePath::CharType kCompressedEVWhitelistFileName[] = 26 const base::FilePath::CharType kCompressedEVWhitelistFileName[] =
28 FILE_PATH_LITERAL("ev_hashes_whitelist.bin"); 27 FILE_PATH_LITERAL("ev_hashes_whitelist.bin");
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 DefaultComponentInstaller* installer = 154 DefaultComponentInstaller* installer =
156 new DefaultComponentInstaller(std::move(traits)); 155 new DefaultComponentInstaller(std::move(traits));
157 installer->Register(cus, base::Closure()); 156 installer->Register(cus, base::Closure());
158 157
159 content::BrowserThread::PostAfterStartupTask( 158 content::BrowserThread::PostAfterStartupTask(
160 FROM_HERE, content::BrowserThread::GetBlockingPool(), 159 FROM_HERE, content::BrowserThread::GetBlockingPool(),
161 base::Bind(&DeleteWhitelistCopy, user_data_dir)); 160 base::Bind(&DeleteWhitelistCopy, user_data_dir));
162 } 161 }
163 162
164 } // namespace component_updater 163 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698