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

Unified Diff: mandoline/ui/browser/navigator_host_impl.cc

Issue 1121783003: Move navigations with POST or referrer to the shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 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 | « mandoline/ui/browser/desktop/desktop_ui.cc ('k') | mandoline/ui/browser/view_embedder.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/browser/navigator_host_impl.cc
diff --git a/mandoline/ui/browser/navigator_host_impl.cc b/mandoline/ui/browser/navigator_host_impl.cc
index 07f406f7b9c8022b95aaf9d5dc2c9d883c77ec8d..d6575fd1c6280208cc7803144115c5945d9efc27 100644
--- a/mandoline/ui/browser/navigator_host_impl.cc
+++ b/mandoline/ui/browser/navigator_host_impl.cc
@@ -28,7 +28,7 @@ void NavigatorHostImpl::DidNavigateLocally(const mojo::String& url) {
void NavigatorHostImpl::RequestNavigate(mojo::Target target,
mojo::URLRequestPtr request) {
// The Browser sets up default services including navigation.
- browser_->ReplaceContentWithURL(request->url);
+ browser_->ReplaceContentWithRequest(request.Pass());
}
void NavigatorHostImpl::RequestNavigateHistory(int32_t delta) {
@@ -37,7 +37,9 @@ void NavigatorHostImpl::RequestNavigateHistory(int32_t delta) {
current_index_ =
std::max(0, std::min(current_index_ + delta,
static_cast<int32_t>(history_.size()) - 1));
- browser_->ReplaceContentWithURL(history_[current_index_]);
+ mojo::URLRequestPtr request(mojo::URLRequest::New());
+ request->url = mojo::String::From(history_[current_index_]);
+ browser_->ReplaceContentWithRequest(request.Pass());
}
void NavigatorHostImpl::RecordNavigation(const std::string& url) {
« no previous file with comments | « mandoline/ui/browser/desktop/desktop_ui.cc ('k') | mandoline/ui/browser/view_embedder.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698