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

Side by Side Diff: components/dom_distiller/content/browser/distiller_javascript_service_impl.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/dom_distiller/content/browser/distiller_javascript_service_ impl.h" 5 #include "components/dom_distiller/content/browser/distiller_javascript_service_ impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/metrics/user_metrics.h" 10 #include "base/metrics/user_metrics.h"
(...skipping 25 matching lines...) Expand all
36 return; 36 return;
37 } 37 }
38 content::WebContents* contents = 38 content::WebContents* contents =
39 content::WebContents::FromRenderFrameHost(render_frame_host_); 39 content::WebContents::FromRenderFrameHost(render_frame_host_);
40 distiller_ui_handle_->OpenSettings(contents); 40 distiller_ui_handle_->OpenSettings(contents);
41 } 41 }
42 42
43 void CreateDistillerJavaScriptService( 43 void CreateDistillerJavaScriptService(
44 content::RenderFrameHost* render_frame_host, 44 content::RenderFrameHost* render_frame_host,
45 DistillerUIHandle* distiller_ui_handle, 45 DistillerUIHandle* distiller_ui_handle,
46 mojo::InterfaceRequest<mojom::DistillerJavaScriptService> request) { 46 const service_manager::BindSourceInfo& source_info,
47 mojom::DistillerJavaScriptServiceRequest request) {
47 mojo::MakeStrongBinding(base::MakeUnique<DistillerJavaScriptServiceImpl>( 48 mojo::MakeStrongBinding(base::MakeUnique<DistillerJavaScriptServiceImpl>(
48 render_frame_host, distiller_ui_handle), 49 render_frame_host, distiller_ui_handle),
49 std::move(request)); 50 std::move(request));
50 } 51 }
51 52
52 } // namespace dom_distiller 53 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698