OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "win8/test/metro_registration_helper.h" | 5 #include "win8/test/metro_registration_helper.h" |
6 | 6 |
7 #include <shlobj.h> | 7 #include <shlobj.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/file_util.h" | |
13 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/files/file_util.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/process/kill.h" | 16 #include "base/process/kill.h" |
17 #include "base/process/launch.h" | 17 #include "base/process/launch.h" |
18 #include "base/process/process.h" | 18 #include "base/process/process.h" |
19 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
20 #include "base/win/scoped_co_mem.h" | 20 #include "base/win/scoped_co_mem.h" |
21 #include "base/win/scoped_comptr.h" | 21 #include "base/win/scoped_comptr.h" |
22 #include "base/win/scoped_handle.h" | 22 #include "base/win/scoped_handle.h" |
23 #include "win8/test/open_with_dialog_controller.h" | 23 #include "win8/test/open_with_dialog_controller.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 std::vector<base::string16> choices; | 124 std::vector<base::string16> choices; |
125 OpenWithDialogController controller; | 125 OpenWithDialogController controller; |
126 HRESULT hr = controller.RunSynchronously( | 126 HRESULT hr = controller.RunSynchronously( |
127 NULL, kDefaultBrowserProtocol, win8::test::kDefaultTestExeName, &choices); | 127 NULL, kDefaultBrowserProtocol, win8::test::kDefaultTestExeName, &choices); |
128 LOG_IF(ERROR, FAILED(hr)) << std::hex << hr; | 128 LOG_IF(ERROR, FAILED(hr)) << std::hex << hr; |
129 DCHECK(IsTestDefaultForProtocol(kDefaultBrowserProtocol)); | 129 DCHECK(IsTestDefaultForProtocol(kDefaultBrowserProtocol)); |
130 return SUCCEEDED(hr); | 130 return SUCCEEDED(hr); |
131 } | 131 } |
132 | 132 |
133 } // namespace win8 | 133 } // namespace win8 |
OLD | NEW |