| 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) {
|
|
|