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