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

Side by Side Diff: chrome/browser/ui/webui/omnibox/omnibox_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/omnibox/omnibox_ui.h" 5 #include "chrome/browser/ui/webui/omnibox/omnibox_ui.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/webui/omnibox/omnibox_page_handler.h" 10 #include "chrome/browser/ui/webui/omnibox/omnibox_page_handler.h"
(...skipping 12 matching lines...) Expand all
23 source->AddResourcePath("chrome/browser/ui/webui/omnibox/omnibox.mojom", 23 source->AddResourcePath("chrome/browser/ui/webui/omnibox/omnibox.mojom",
24 IDR_OMNIBOX_MOJO_JS); 24 IDR_OMNIBOX_MOJO_JS);
25 source->SetDefaultResource(IDR_OMNIBOX_HTML); 25 source->SetDefaultResource(IDR_OMNIBOX_HTML);
26 26
27 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), source); 27 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), source);
28 } 28 }
29 29
30 OmniboxUI::~OmniboxUI() {} 30 OmniboxUI::~OmniboxUI() {}
31 31
32 void OmniboxUI::BindUIHandler( 32 void OmniboxUI::BindUIHandler(
33 mojo::InterfaceRequest<mojom::OmniboxPageHandler> request) { 33 const service_manager::BindSourceInfo& source_info,
34 mojom::OmniboxPageHandlerRequest request) {
34 omnibox_handler_.reset( 35 omnibox_handler_.reset(
35 new OmniboxPageHandler(Profile::FromWebUI(web_ui()), std::move(request))); 36 new OmniboxPageHandler(Profile::FromWebUI(web_ui()), std::move(request)));
36 } 37 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/omnibox/omnibox_ui.h ('k') | chrome/browser/ui/webui/usb_internals/usb_internals_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698