| 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 "chrome/browser/ui/webui/engagement/site_engagement_ui.h" | 5 #include "chrome/browser/ui/webui/engagement/site_engagement_ui.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 IDR_SITE_ENGAGEMENT_MOJO_JS); | 86 IDR_SITE_ENGAGEMENT_MOJO_JS); |
| 87 source->AddResourcePath("url/mojo/url.mojom", IDR_URL_MOJO_JS); | 87 source->AddResourcePath("url/mojo/url.mojom", IDR_URL_MOJO_JS); |
| 88 source->SetDefaultResource(IDR_SITE_ENGAGEMENT_HTML); | 88 source->SetDefaultResource(IDR_SITE_ENGAGEMENT_HTML); |
| 89 source->UseGzip(std::unordered_set<std::string>()); | 89 source->UseGzip(std::unordered_set<std::string>()); |
| 90 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), source.release()); | 90 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), source.release()); |
| 91 } | 91 } |
| 92 | 92 |
| 93 SiteEngagementUI::~SiteEngagementUI() {} | 93 SiteEngagementUI::~SiteEngagementUI() {} |
| 94 | 94 |
| 95 void SiteEngagementUI::BindUIHandler( | 95 void SiteEngagementUI::BindUIHandler( |
| 96 mojo::InterfaceRequest<mojom::SiteEngagementDetailsProvider> request) { | 96 const service_manager::BindSourceInfo& source_info, |
| 97 mojom::SiteEngagementDetailsProviderRequest request) { |
| 97 ui_handler_.reset(new SiteEngagementDetailsProviderImpl( | 98 ui_handler_.reset(new SiteEngagementDetailsProviderImpl( |
| 98 Profile::FromWebUI(web_ui()), std::move(request))); | 99 Profile::FromWebUI(web_ui()), std::move(request))); |
| 99 } | 100 } |
| OLD | NEW |