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/open_with_dialog_controller.h" | 5 #include "win8/test/open_with_dialog_controller.h" |
6 | 6 |
7 #include <shlobj.h> | 7 #include <shlobj.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
15 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
16 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
17 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
18 #include "win8/test/open_with_dialog_async.h" | 19 #include "win8/test/open_with_dialog_async.h" |
19 #include "win8/test/ui_automation_client.h" | 20 #include "win8/test/ui_automation_client.h" |
20 | 21 |
21 namespace win8 { | 22 namespace win8 { |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 base::Bind(&OpenWithDialogController::Begin, base::Unretained(this), | 284 base::Bind(&OpenWithDialogController::Begin, base::Unretained(this), |
284 parent_window, protocol, program, | 285 parent_window, protocol, program, |
285 Bind(&OnMakeDefaultComplete, run_loop.QuitClosure(), | 286 Bind(&OnMakeDefaultComplete, run_loop.QuitClosure(), |
286 &result, choices))); | 287 &result, choices))); |
287 | 288 |
288 run_loop.Run(); | 289 run_loop.Run(); |
289 return result; | 290 return result; |
290 } | 291 } |
291 | 292 |
292 } // namespace win8 | 293 } // namespace win8 |
OLD | NEW |