Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: chrome/utility/shell_handler_impl_win.cc

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (Closed)
Patch Set: . Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/utility/shell_handler_impl_win.h ('k') | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698