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

Side by Side Diff: base/linux_util.cc

Issue 689553002: Cleanup: Remove unneeded path_service.h includes in base and chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win Created 6 years, 1 month 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/file_version_info_win.cc ('k') | base/memory/singleton_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/linux_util.h" 5 #include "base/linux_util.h"
6 6
7 #include <dirent.h> 7 #include <dirent.h>
8 #include <errno.h> 8 #include <errno.h>
9 #include <fcntl.h> 9 #include <fcntl.h>
10 #include <stdlib.h> 10 #include <stdlib.h>
11 #include <sys/stat.h> 11 #include <sys/stat.h>
12 #include <sys/types.h> 12 #include <sys/types.h>
13 #include <unistd.h> 13 #include <unistd.h>
14 14
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/command_line.h" 17 #include "base/command_line.h"
18 #include "base/files/file_util.h" 18 #include "base/files/file_util.h"
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "base/memory/singleton.h" 20 #include "base/memory/singleton.h"
21 #include "base/path_service.h"
22 #include "base/process/launch.h" 21 #include "base/process/launch.h"
23 #include "base/strings/string_util.h" 22 #include "base/strings/string_util.h"
24 #include "base/synchronization/lock.h" 23 #include "base/synchronization/lock.h"
25 24
26 namespace { 25 namespace {
27 26
28 // Not needed for OS_CHROMEOS. 27 // Not needed for OS_CHROMEOS.
29 #if defined(OS_LINUX) 28 #if defined(OS_LINUX)
30 enum LinuxDistroState { 29 enum LinuxDistroState {
31 STATE_DID_NOT_CHECK = 0, 30 STATE_DID_NOT_CHECK = 0,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 170
172 if (0 == strncmp(expected_data.c_str(), syscall_data.get(), 171 if (0 == strncmp(expected_data.c_str(), syscall_data.get(),
173 expected_data.length())) { 172 expected_data.length())) {
174 return current_tid; 173 return current_tid;
175 } 174 }
176 } 175 }
177 return -1; 176 return -1;
178 } 177 }
179 178
180 } // namespace base 179 } // namespace base
OLDNEW
« no previous file with comments | « base/file_version_info_win.cc ('k') | base/memory/singleton_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698