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/cld_component_installer.h" | 5 #include "chrome/browser/component_updater/cld_component_installer.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
15 #include "base/path_service.h" | 16 #include "base/path_service.h" |
16 #include "components/component_updater/component_updater_paths.h" | 17 #include "components/component_updater/component_updater_paths.h" |
17 #include "components/translate/content/browser/browser_cld_data_provider.h" | 18 #include "components/translate/content/browser/browser_cld_data_provider.h" |
18 #include "components/translate/content/browser/browser_cld_data_provider_factory
.h" | 19 #include "components/translate/content/browser/browser_cld_data_provider_factory
.h" |
19 #include "components/translate/content/common/cld_data_source.h" | 20 #include "components/translate/content/common/cld_data_source.h" |
20 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
21 #include "net/ssl/ssl_config_service.h" | 22 #include "net/ssl/ssl_config_service.h" |
22 | 23 |
23 using component_updater::ComponentUpdateService; | 24 using component_updater::ComponentUpdateService; |
24 | 25 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 VLOG(1) << "Setting CLD data file location: " << path.value(); | 133 VLOG(1) << "Setting CLD data file location: " << path.value(); |
133 g_latest_cld_data_file.Get() = path; | 134 g_latest_cld_data_file.Get() = path; |
134 translate::CldDataSource::Get()->SetCldDataFilePath(path); | 135 translate::CldDataSource::Get()->SetCldDataFilePath(path); |
135 } | 136 } |
136 | 137 |
137 base::FilePath CldComponentInstallerTraits::GetLatestCldDataFile() { | 138 base::FilePath CldComponentInstallerTraits::GetLatestCldDataFile() { |
138 return g_latest_cld_data_file.Get(); | 139 return g_latest_cld_data_file.Get(); |
139 } | 140 } |
140 | 141 |
141 } // namespace component_updater | 142 } // namespace component_updater |
OLD | NEW |