OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/utility/shell_handler_impl_win.h" | 5 #include "chrome/utility/shell_handler_impl_win.h" |
6 | 6 |
7 #include <shldisp.h> | 7 #include <shldisp.h> |
8 | 8 |
9 #include "base/files/file_enumerator.h" | 9 #include "base/files/file_enumerator.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/memory/ptr_util.h" |
11 #include "base/path_service.h" | 12 #include "base/path_service.h" |
12 #include "base/scoped_native_library.h" | 13 #include "base/scoped_native_library.h" |
13 #include "base/win/scoped_bstr.h" | 14 #include "base/win/scoped_bstr.h" |
14 #include "base/win/scoped_com_initializer.h" | 15 #include "base/win/scoped_com_initializer.h" |
15 #include "base/win/scoped_comptr.h" | 16 #include "base/win/scoped_comptr.h" |
16 #include "base/win/scoped_variant.h" | 17 #include "base/win/scoped_variant.h" |
17 #include "base/win/shortcut.h" | 18 #include "base/win/shortcut.h" |
18 #include "chrome/installer/util/install_util.h" | 19 #include "chrome/installer/util/install_util.h" |
19 #include "content/public/utility/utility_thread.h" | 20 #include "content/public/utility/utility_thread.h" |
20 #include "mojo/public/cpp/bindings/strong_binding.h" | 21 #include "mojo/public/cpp/bindings/strong_binding.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 mojo::MakeStrongBinding(base::MakeUnique<ShellHandlerImpl>(), | 218 mojo::MakeStrongBinding(base::MakeUnique<ShellHandlerImpl>(), |
218 std::move(request)); | 219 std::move(request)); |
219 } | 220 } |
220 | 221 |
221 void ShellHandlerImpl::IsPinnedToTaskbar( | 222 void ShellHandlerImpl::IsPinnedToTaskbar( |
222 const IsPinnedToTaskbarCallback& callback) { | 223 const IsPinnedToTaskbarCallback& callback) { |
223 IsPinnedToTaskbarHelper helper; | 224 IsPinnedToTaskbarHelper helper; |
224 bool is_pinned_to_taskbar = helper.GetResult(); | 225 bool is_pinned_to_taskbar = helper.GetResult(); |
225 callback.Run(!helper.error_occured(), is_pinned_to_taskbar); | 226 callback.Run(!helper.error_occured(), is_pinned_to_taskbar); |
226 } | 227 } |
OLD | NEW |