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" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 return false; | 205 return false; |
206 } | 206 } |
207 | 207 |
208 } // namespace | 208 } // namespace |
209 | 209 |
210 ShellHandlerImpl::ShellHandlerImpl() = default; | 210 ShellHandlerImpl::ShellHandlerImpl() = default; |
211 | 211 |
212 ShellHandlerImpl::~ShellHandlerImpl() = default; | 212 ShellHandlerImpl::~ShellHandlerImpl() = default; |
213 | 213 |
214 // static | 214 // static |
215 void ShellHandlerImpl::Create(mojom::ShellHandlerRequest request) { | 215 void ShellHandlerImpl::Create(chrome::mojom::ShellHandlerRequest request) { |
216 mojo::MakeStrongBinding(base::MakeUnique<ShellHandlerImpl>(), | 216 mojo::MakeStrongBinding(base::MakeUnique<ShellHandlerImpl>(), |
217 std::move(request)); | 217 std::move(request)); |
218 } | 218 } |
219 | 219 |
220 void ShellHandlerImpl::IsPinnedToTaskbar( | 220 void ShellHandlerImpl::IsPinnedToTaskbar( |
221 const IsPinnedToTaskbarCallback& callback) { | 221 const IsPinnedToTaskbarCallback& callback) { |
222 IsPinnedToTaskbarHelper helper; | 222 IsPinnedToTaskbarHelper helper; |
223 bool is_pinned_to_taskbar = helper.GetResult(); | 223 bool is_pinned_to_taskbar = helper.GetResult(); |
224 callback.Run(!helper.error_occured(), is_pinned_to_taskbar); | 224 callback.Run(!helper.error_occured(), is_pinned_to_taskbar); |
225 } | 225 } |
OLD | NEW |