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

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

Issue 273153003: Remove stray platform_file.h from chrome and components (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove "using" Created 6 years, 7 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 | Annotate | Revision Log
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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698