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

Side by Side Diff: chrome_frame/test_utils.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « chrome_frame/test/test_with_web_server.cc ('k') | chromeos/chromeos_test_utils.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 "chrome_frame/test_utils.h" 5 #include "chrome_frame/test_utils.h"
6 6
7 #include <atlbase.h> 7 #include <atlbase.h>
8 #include <atlwin.h> 8 #include <atlwin.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 10
(...skipping 18 matching lines...) Expand all
29 // How long to wait for DLLs to register or unregister themselves before killing 29 // How long to wait for DLLs to register or unregister themselves before killing
30 // the registrar. 30 // the registrar.
31 const int64 kDllRegistrationTimeoutMs = 30 * 1000; 31 const int64 kDllRegistrationTimeoutMs = 30 * 1000;
32 32
33 base::FilePath GetChromeFrameBuildPath() { 33 base::FilePath GetChromeFrameBuildPath() {
34 base::FilePath build_path; 34 base::FilePath build_path;
35 PathService::Get(chrome::DIR_APP, &build_path); 35 PathService::Get(chrome::DIR_APP, &build_path);
36 36
37 base::FilePath dll_path = build_path.Append(kChromeFrameDllName); 37 base::FilePath dll_path = build_path.Append(kChromeFrameDllName);
38 38
39 if (!file_util::PathExists(dll_path)) { 39 if (!base::PathExists(dll_path)) {
40 // Well, dang.. try looking in the current directory. 40 // Well, dang.. try looking in the current directory.
41 dll_path = build_path.Append(kChromeFrameDllName); 41 dll_path = build_path.Append(kChromeFrameDllName);
42 } 42 }
43 43
44 if (!file_util::PathExists(dll_path)) { 44 if (!base::PathExists(dll_path)) {
45 // No luck, return something empty. 45 // No luck, return something empty.
46 dll_path = base::FilePath(); 46 dll_path = base::FilePath();
47 } 47 }
48 48
49 return dll_path; 49 return dll_path;
50 } 50 }
51 51
52 const wchar_t ScopedChromeFrameRegistrar::kCallRegistrationEntrypointSwitch[] = 52 const wchar_t ScopedChromeFrameRegistrar::kCallRegistrationEntrypointSwitch[] =
53 L"--call-registration-entrypoint"; 53 L"--call-registration-entrypoint";
54 54
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 UOI_NAME, 277 UOI_NAME,
278 name, 278 name,
279 sizeof(name), 279 sizeof(name),
280 &needed)) { 280 &needed)) {
281 is_locked = lstrcmpi(name, L"default") != 0; 281 is_locked = lstrcmpi(name, L"default") != 0;
282 } 282 }
283 ::CloseDesktop(input_desk); 283 ::CloseDesktop(input_desk);
284 } 284 }
285 return is_locked; 285 return is_locked;
286 } 286 }
OLDNEW
« no previous file with comments | « chrome_frame/test/test_with_web_server.cc ('k') | chromeos/chromeos_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698