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

Unified Diff: services/navigation/navigation.cc

Issue 1981623002: Add a basic browser to mash that uses the navigation service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/navigation.h ('k') | services/navigation/navigation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/navigation/navigation.cc
diff --git a/services/navigation/navigation.cc b/services/navigation/navigation.cc
index 843d28f51e94767f9f459b8e37e8764d7cc55b9b..75176d7c4920baeb9769e08bc45bcf8ee8016c2e 100644
--- a/services/navigation/navigation.cc
+++ b/services/navigation/navigation.cc
@@ -17,7 +17,9 @@ Navigation::Navigation()
}
Navigation::~Navigation() {}
-void Navigation::SetBrowserContext(content::BrowserContext* browser_context) {
+void Navigation::Init(shell::Connector* connector,
+ content::BrowserContext* browser_context) {
+ connector_ = connector;
browser_context_ = browser_context;
for (auto& pending : pending_creates_)
CreateView(std::move(pending.first), std::move(pending.second));
@@ -41,8 +43,8 @@ void Navigation::CreateView(mojom::ViewClientPtr client,
std::make_pair(std::move(client), std::move(request)));
return;
}
- new ViewImpl(browser_context_, std::move(client), std::move(request),
- ref_factory_.CreateRef());
+ new ViewImpl(connector_, browser_context_, std::move(client),
+ std::move(request), ref_factory_.CreateRef());
}
void Navigation::ViewFactoryLost() {
« no previous file with comments | « services/navigation/navigation.h ('k') | services/navigation/navigation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698