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

Side by Side Diff: base/linux_util.cc

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <glib.h> 10 #include <glib.h>
11 #include <stdlib.h> 11 #include <stdlib.h>
12 #include <sys/stat.h> 12 #include <sys/stat.h>
13 #include <sys/types.h> 13 #include <sys/types.h>
14 #include <unistd.h> 14 #include <unistd.h>
15 15
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/command_line.h" 18 #include "base/command_line.h"
19 #include "base/file_util.h" 19 #include "base/file_util.h"
20 #include "base/memory/singleton.h"
21 #include "base/memory/scoped_ptr.h"
20 #include "base/path_service.h" 22 #include "base/path_service.h"
21 #include "base/process_util.h" 23 #include "base/process_util.h"
22 #include "base/singleton.h"
23 #include "base/scoped_ptr.h"
24 #include "base/string_util.h" 24 #include "base/string_util.h"
25 #include "base/synchronization/lock.h" 25 #include "base/synchronization/lock.h"
26 26
27 namespace { 27 namespace {
28 28
29 // Not needed for OS_CHROMEOS. 29 // Not needed for OS_CHROMEOS.
30 #if defined(OS_LINUX) 30 #if defined(OS_LINUX)
31 enum LinuxDistroState { 31 enum LinuxDistroState {
32 STATE_DID_NOT_CHECK = 0, 32 STATE_DID_NOT_CHECK = 0,
33 STATE_CHECK_STARTED = 1, 33 STATE_CHECK_STARTED = 1,
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 288
289 if (0 == strncmp(expected_data.c_str(), syscall_data.get(), 289 if (0 == strncmp(expected_data.c_str(), syscall_data.get(),
290 expected_data.length())) { 290 expected_data.length())) {
291 return current_tid; 291 return current_tid;
292 } 292 }
293 } 293 }
294 return -1; 294 return -1;
295 } 295 }
296 296
297 } // namespace base 297 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698