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/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
19 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
20 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
21 #include "net/ssl/ssl_config_service.h" | 20 #include "net/ssl/ssl_config_service.h" |
22 | 21 |
23 using component_updater::ComponentUpdateService; | 22 using component_updater::ComponentUpdateService; |
24 using content::BrowserThread; | 23 using content::BrowserThread; |
25 | 24 |
26 namespace { | 25 namespace { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 cld_file.Get() = path; | 121 cld_file.Get() = path; |
123 } | 122 } |
124 | 123 |
125 base::FilePath GetLatestCldDataFile() { | 124 base::FilePath GetLatestCldDataFile() { |
126 base::AutoLock lock(cld_file_lock.Get()); | 125 base::AutoLock lock(cld_file_lock.Get()); |
127 // cld_file is an empty path by default, meaning "file not available yet". | 126 // cld_file is an empty path by default, meaning "file not available yet". |
128 return cld_file.Get(); | 127 return cld_file.Get(); |
129 } | 128 } |
130 | 129 |
131 } // namespace component_updater | 130 } // namespace component_updater |
OLD | NEW |