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

Side by Side Diff: chrome/common/chrome_paths.cc

Issue 8341052: share all the needed linux code with OpenBSD in chrome and content (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased due to LOG macro changes Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/common/chrome_paths.h" 5 #include "chrome/common/chrome_paths.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 break; 298 break;
299 case chrome::DIR_TEST_TOOLS: 299 case chrome::DIR_TEST_TOOLS:
300 if (!PathService::Get(base::DIR_SOURCE_ROOT, &cur)) 300 if (!PathService::Get(base::DIR_SOURCE_ROOT, &cur))
301 return false; 301 return false;
302 cur = cur.Append(FILE_PATH_LITERAL("chrome")); 302 cur = cur.Append(FILE_PATH_LITERAL("chrome"));
303 cur = cur.Append(FILE_PATH_LITERAL("tools")); 303 cur = cur.Append(FILE_PATH_LITERAL("tools"));
304 cur = cur.Append(FILE_PATH_LITERAL("test")); 304 cur = cur.Append(FILE_PATH_LITERAL("test"));
305 if (!file_util::PathExists(cur)) // We don't want to create this 305 if (!file_util::PathExists(cur)) // We don't want to create this
306 return false; 306 return false;
307 break; 307 break;
308 #if defined(OS_POSIX) && !defined(OS_MACOSX) 308 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_OPENBSD)
309 case chrome::DIR_POLICY_FILES: { 309 case chrome::DIR_POLICY_FILES: {
310 #if defined(GOOGLE_CHROME_BUILD) 310 #if defined(GOOGLE_CHROME_BUILD)
311 cur = FilePath(FILE_PATH_LITERAL("/etc/opt/chrome/policies")); 311 cur = FilePath(FILE_PATH_LITERAL("/etc/opt/chrome/policies"));
312 #else 312 #else
313 cur = FilePath(FILE_PATH_LITERAL("/etc/chromium/policies")); 313 cur = FilePath(FILE_PATH_LITERAL("/etc/chromium/policies"));
314 #endif 314 #endif
315 break; 315 break;
316 } 316 }
317 #endif 317 #endif
318 #if defined(OS_MACOSX) 318 #if defined(OS_MACOSX)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 return true; 393 return true;
394 } 394 }
395 395
396 // This cannot be done as a static initializer sadly since Visual Studio will 396 // This cannot be done as a static initializer sadly since Visual Studio will
397 // eliminate this object file if there is no direct entry point into it. 397 // eliminate this object file if there is no direct entry point into it.
398 void RegisterPathProvider() { 398 void RegisterPathProvider() {
399 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END); 399 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END);
400 } 400 }
401 401
402 } // namespace chrome 402 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698