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

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

Issue 1675083002: Rename ApplicationDelegate to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
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/ui/desktop_ui/browser_manager.h ('k') | mandoline/ui/desktop_ui/browser_window.h » ('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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 GURL url(arg); 63 GURL url(arg);
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( 73 bool BrowserManager::AcceptConnection(mojo::Connection* connection) {
74 mojo::ApplicationConnection* connection) {
75 connection->AddService<LaunchHandler>(this); 74 connection->AddService<LaunchHandler>(this);
76 return true; 75 return true;
77 } 76 }
78 77
79 void BrowserManager::Create(mojo::ApplicationConnection* connection, 78 void BrowserManager::Create(mojo::Connection* connection,
80 mojo::InterfaceRequest<LaunchHandler> request) { 79 mojo::InterfaceRequest<LaunchHandler> request) {
81 launch_handler_bindings_.AddBinding(this, std::move(request)); 80 launch_handler_bindings_.AddBinding(this, std::move(request));
82 } 81 }
83 82
84 } // namespace mandoline 83 } // namespace mandoline
OLDNEW
« no previous file with comments | « mandoline/ui/desktop_ui/browser_manager.h ('k') | mandoline/ui/desktop_ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698