| Index: sky/shell/ui/engine.cc
|
| diff --git a/sky/shell/ui/engine.cc b/sky/shell/ui/engine.cc
|
| index e3df08d99b701ea473dff315faa9341908705e36..cbba62afb6f47dac623d6de1f92650aad2f84d07 100644
|
| --- a/sky/shell/ui/engine.cc
|
| +++ b/sky/shell/ui/engine.cc
|
| @@ -170,10 +170,11 @@ void Engine::OnInputEvent(InputEventPtr event) {
|
| web_view_->handleInputEvent(*web_event);
|
| }
|
|
|
| -void Engine::LoadURL(const mojo::String& url) {
|
| - if (!WebView::shouldUseWebView(responseURL)) {
|
| +void Engine::LoadURL(const mojo::String& mojo_url) {
|
| + GURL url(mojo_url);
|
| + if (!blink::WebView::shouldUseWebView(url)) {
|
| sky_view_ = blink::SkyView::Create(this);
|
| - sky_view_->Load(GURL(url));
|
| + sky_view_->Load(url);
|
| return;
|
| }
|
|
|
| @@ -186,7 +187,7 @@ void Engine::LoadURL(const mojo::String& url) {
|
| ConfigureSettings(web_view_->settings());
|
| web_view_->setMainFrame(blink::WebLocalFrame::create(this));
|
| UpdateWebViewSize();
|
| - web_view_->mainFrame()->load(GURL(url));
|
| + web_view_->mainFrame()->load(url);
|
| }
|
|
|
| void Engine::frameDetached(blink::WebFrame* frame) {
|
|
|