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