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

Side by Side Diff: base/path_service.cc

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 12 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
« no previous file with comments | « base/os_compat_android.cc ('k') | base/path_service_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/path_service.h" 5 #include "base/path_service.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #include <shlobj.h> 10 #include <shlobj.h>
11 #endif 11 #endif
12 12
13 #include "base/containers/hash_tables.h" 13 #include "base/containers/hash_tables.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
16 #include "base/lazy_instance.h" 16 #include "base/lazy_instance.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/synchronization/lock.h" 18 #include "base/synchronization/lock.h"
19 #include "build/build_config.h"
19 20
20 namespace base { 21 namespace base {
21 22
22 bool PathProvider(int key, FilePath* result); 23 bool PathProvider(int key, FilePath* result);
23 24
24 #if defined(OS_WIN) 25 #if defined(OS_WIN)
25 bool PathProviderWin(int key, FilePath* result); 26 bool PathProviderWin(int key, FilePath* result);
26 #elif defined(OS_MACOSX) 27 #elif defined(OS_MACOSX)
27 bool PathProviderMac(int key, FilePath* result); 28 bool PathProviderMac(int key, FilePath* result);
28 #elif defined(OS_ANDROID) 29 #elif defined(OS_ANDROID)
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 void PathService::DisableCache() { 322 void PathService::DisableCache() {
322 PathData* path_data = GetPathData(); 323 PathData* path_data = GetPathData();
323 DCHECK(path_data); 324 DCHECK(path_data);
324 325
325 AutoLock scoped_lock(path_data->lock); 326 AutoLock scoped_lock(path_data->lock);
326 path_data->cache.clear(); 327 path_data->cache.clear();
327 path_data->cache_disabled = true; 328 path_data->cache_disabled = true;
328 } 329 }
329 330
330 } // namespace base 331 } // namespace base
OLDNEW
« no previous file with comments | « base/os_compat_android.cc ('k') | base/path_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698