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

Side by Side Diff: mandoline/ui/omnibox/omnibox_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 unified diff | Download patch
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/omnibox/omnibox_impl.h" 5 #include "mandoline/ui/omnibox/omnibox_impl.h"
6 6
7 #include "base/strings/string16.h" 7 #include "base/strings/string16.h"
8 #include "components/view_manager/public/cpp/view_manager_client_factory.h" 8 #include "components/view_manager/public/cpp/view_manager_client_factory.h"
9 #include "mandoline/ui/aura/aura_init.h" 9 #include "mandoline/ui/aura/aura_init.h"
10 #include "mandoline/ui/aura/native_widget_view_manager.h" 10 #include "mandoline/ui/aura/native_widget_view_manager.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 //////////////////////////////////////////////////////////////////////////////// 129 ////////////////////////////////////////////////////////////////////////////////
130 // OmniboxImpl, Omnibox implementation: 130 // OmniboxImpl, Omnibox implementation:
131 131
132 void OmniboxImpl::SetClient(OmniboxClientPtr client) { 132 void OmniboxImpl::SetClient(OmniboxClientPtr client) {
133 client_ = client.Pass(); 133 client_ = client.Pass();
134 } 134 }
135 135
136 void OmniboxImpl::ShowForURL(const mojo::String& url) { 136 void OmniboxImpl::ShowForURL(const mojo::String& url) {
137 url_ = url; 137 url_ = url;
138 138 mojo::URLRequestPtr request(mojo::URLRequest::New());
139 view_embedder_->Embed("mojo:omnibox", nullptr, nullptr); 139 request->url = mojo::String::From("mojo:omnibox");
140 view_embedder_->Embed(request.Pass(), nullptr, nullptr);
140 } 141 }
141 142
142 } // namespace mandoline 143 } // namespace mandoline
OLDNEW
« no previous file with comments | « mandoline/ui/browser/view_embedder.mojom ('k') | mojo/application/public/cpp/application_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698