mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix android build
TBR=ianh@google.com Review URL: https://codereview.chromium.org/1147153005
This commit is contained in:
parent
8aa3caf350
commit
19bb5cb574
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user