OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |