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

Side by Side Diff: mandoline/ui/desktop_ui/browser_manager.cc

Issue 1681813002: Rename Connection::AddService/ConnectToService to Connection::AddInterface/GetInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@interface_binder
Patch Set: . Created 4 years, 10 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
« no previous file with comments | « mandoline/services/updater/updater_app.cc ('k') | mandoline/ui/desktop_ui/browser_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "mandoline/ui/desktop_ui/browser_manager.h" 5 #include "mandoline/ui/desktop_ui/browser_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "components/mus/public/cpp/window.h" 10 #include "components/mus/public/cpp/window.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 if (url.is_valid()) 64 if (url.is_valid())
65 CreateBrowser(url); 65 CreateBrowser(url);
66 } 66 }
67 // If there were no valid URLs in the command line create a Browser with the 67 // If there were no valid URLs in the command line create a Browser with the
68 // default URL. 68 // default URL.
69 if (browsers_.empty()) 69 if (browsers_.empty())
70 CreateBrowser(GURL(kGoogleURL)); 70 CreateBrowser(GURL(kGoogleURL));
71 } 71 }
72 72
73 bool BrowserManager::AcceptConnection(mojo::Connection* connection) { 73 bool BrowserManager::AcceptConnection(mojo::Connection* connection) {
74 connection->AddService<LaunchHandler>(this); 74 connection->AddInterface<LaunchHandler>(this);
75 return true; 75 return true;
76 } 76 }
77 77
78 void BrowserManager::Create(mojo::Connection* connection, 78 void BrowserManager::Create(mojo::Connection* connection,
79 mojo::InterfaceRequest<LaunchHandler> request) { 79 mojo::InterfaceRequest<LaunchHandler> request) {
80 launch_handler_bindings_.AddBinding(this, std::move(request)); 80 launch_handler_bindings_.AddBinding(this, std::move(request));
81 } 81 }
82 82
83 } // namespace mandoline 83 } // namespace mandoline
OLDNEW
« no previous file with comments | « mandoline/services/updater/updater_app.cc ('k') | mandoline/ui/desktop_ui/browser_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698