| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|