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/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.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/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/platform_file.h" | |
17 #include "chrome/browser/component_updater/default_component_installer.h" | 16 #include "chrome/browser/component_updater/default_component_installer.h" |
18 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/common/chrome_constants.h" | 18 #include "chrome/common/chrome_constants.h" |
20 #include "chrome/common/chrome_paths.h" | 19 #include "chrome/common/chrome_paths.h" |
21 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
22 #include "net/ssl/ssl_config_service.h" | 21 #include "net/ssl/ssl_config_service.h" |
23 | 22 |
24 using component_updater::ComponentUpdateService; | 23 using component_updater::ComponentUpdateService; |
25 using content::BrowserThread; | 24 using content::BrowserThread; |
26 | 25 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 bool GetLatestCldDataFile(base::FilePath* path) { | 151 bool GetLatestCldDataFile(base::FilePath* path) { |
153 base::AutoLock lock(cld_file_lock.Get()); | 152 base::AutoLock lock(cld_file_lock.Get()); |
154 const base::FilePath cached = cld_file.Get(); | 153 const base::FilePath cached = cld_file.Get(); |
155 if (cached.empty()) | 154 if (cached.empty()) |
156 return false; | 155 return false; |
157 *path = cached; | 156 *path = cached; |
158 return true; | 157 return true; |
159 } | 158 } |
160 | 159 |
161 } // namespace component_updater | 160 } // namespace component_updater |
OLD | NEW |