OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/pepper_flash_component_installer.h" | 5 #include "chrome/browser/component_updater/pepper_flash_component_installer.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/base_paths.h" | 14 #include "base/base_paths.h" |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/command_line.h" | 16 #include "base/command_line.h" |
17 #include "base/files/file_enumerator.h" | 17 #include "base/files/file_enumerator.h" |
18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
19 #include "base/files/file_util.h" | 19 #include "base/files/file_util.h" |
20 #include "base/json/json_reader.h" | 20 #include "base/json/json_reader.h" |
21 #include "base/logging.h" | 21 #include "base/logging.h" |
22 #include "base/path_service.h" | 22 #include "base/path_service.h" |
23 #include "base/stl_util.h" | 23 #include "base/stl_util.h" |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
26 #include "base/strings/utf_string_conversions.h" | 26 #include "base/strings/utf_string_conversions.h" |
| 27 #include "base/threading/sequenced_worker_pool.h" |
27 #include "base/version.h" | 28 #include "base/version.h" |
28 #include "build/build_config.h" | 29 #include "build/build_config.h" |
29 #include "chrome/browser/component_updater/component_installer_errors.h" | 30 #include "chrome/browser/component_updater/component_installer_errors.h" |
30 #include "chrome/browser/plugins/plugin_prefs.h" | 31 #include "chrome/browser/plugins/plugin_prefs.h" |
31 #include "chrome/common/chrome_constants.h" | 32 #include "chrome/common/chrome_constants.h" |
32 #include "chrome/common/chrome_content_client.h" | 33 #include "chrome/common/chrome_content_client.h" |
33 #include "chrome/common/chrome_paths.h" | 34 #include "chrome/common/chrome_paths.h" |
34 #include "chrome/common/chrome_switches.h" | 35 #include "chrome/common/chrome_switches.h" |
35 #include "chrome/common/pepper_flash.h" | 36 #include "chrome/common/pepper_flash.h" |
36 #include "chrome/common/ppapi_utils.h" | 37 #include "chrome/common/ppapi_utils.h" |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 std::unique_ptr<ComponentInstallerTraits> traits( | 370 std::unique_ptr<ComponentInstallerTraits> traits( |
370 new FlashComponentInstallerTraits); | 371 new FlashComponentInstallerTraits); |
371 // |cus| will take ownership of |installer| during installer->Register(cus). | 372 // |cus| will take ownership of |installer| during installer->Register(cus). |
372 DefaultComponentInstaller* installer = | 373 DefaultComponentInstaller* installer = |
373 new DefaultComponentInstaller(std::move(traits)); | 374 new DefaultComponentInstaller(std::move(traits)); |
374 installer->Register(cus, base::Closure()); | 375 installer->Register(cus, base::Closure()); |
375 #endif // defined(GOOGLE_CHROME_BUILD) | 376 #endif // defined(GOOGLE_CHROME_BUILD) |
376 } | 377 } |
377 | 378 |
378 } // namespace component_updater | 379 } // namespace component_updater |
OLD | NEW |