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

Unified Diff: services/navigation/view_impl.cc

Issue 2018823002: Eliminate WindowTreeConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connection
Patch Set: . Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/navigation/view_impl.h ('k') | ui/views/mus/native_widget_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/navigation/view_impl.cc
diff --git a/services/navigation/view_impl.cc b/services/navigation/view_impl.cc
index 9728d97baf5e04318b08ff0da635fa9ef7ed2e31..83a86a7672f318b94a86ec6e24e9688400847dc7 100644
--- a/services/navigation/view_impl.cc
+++ b/services/navigation/view_impl.cc
@@ -5,7 +5,7 @@
#include "services/navigation/view_impl.h"
#include "base/strings/utf_string_conversions.h"
-#include "components/mus/public/cpp/window_tree_connection.h"
+#include "components/mus/public/cpp/window_tree_client.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/web_contents.h"
#include "ui/views/controls/webview/webview.h"
@@ -55,9 +55,7 @@ void ViewImpl::Stop() {
void ViewImpl::GetWindowTreeClient(
mus::mojom::WindowTreeClientRequest request) {
- mus::WindowTreeConnection::Create(
- this, std::move(request),
- mus::WindowTreeConnection::CreateType::DONT_WAIT_FOR_EMBED);
+ new mus::WindowTreeClient(this, nullptr, std::move(request));
}
void ViewImpl::AddNewContents(content::WebContents* source,
@@ -119,7 +117,7 @@ void ViewImpl::OnEmbed(mus::Window* root) {
widget_->Show();
}
-void ViewImpl::OnConnectionLost(mus::WindowTreeConnection* connection) {}
+void ViewImpl::OnWindowTreeClientDestroyed(mus::WindowTreeClient* client) {}
void ViewImpl::OnEventObserved(const ui::Event& event, mus::Window* target) {}
views::View* ViewImpl::GetContentsView() {
« no previous file with comments | « services/navigation/view_impl.h ('k') | ui/views/mus/native_widget_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698