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

Side by Side Diff: chrome/browser/ui/webui/engagement/site_engagement_ui.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 "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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/engagement/site_engagement_ui.h ('k') | chrome/browser/ui/webui/mojo_web_ui_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698