Skip to content

Commit b153be5

Browse files
committed
backport fix
1 parent 06a277c commit b153be5

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

src/api/dispatcher.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#undef LOG
3636
#undef ASSERT
3737
#include "third_party/WebKit/Source/config.h"
38-
#include "third_party/WebKit/Source/core/frame/Frame.h"
38+
#include "third_party/WebKit/Source/core/page/Frame.h"
3939
#include "third_party/WebKit/Source/web/WebFrameImpl.h"
4040
#include "V8HTMLElement.h"
4141

@@ -165,7 +165,7 @@ void Dispatcher::documentCallback(const char* ev, WebKit::WebFrame* frame) {
165165

166166
v8::Local<v8::Array> args = v8::Array::New();
167167
v8::Handle<v8::Value> element = v8::Null();
168-
WebCore::Frame* core_frame = WebKit::toWebFrameImpl(frame)->frame();
168+
WebCore::Frame* core_frame = static_cast<WebKit::WebFrameImpl*>(frame)->frame();
169169
if (core_frame->ownerElement()) {
170170
element = WebCore::toV8((WebCore::HTMLElement*)core_frame->ownerElement(),
171171
frame->mainWorldScriptContext()->Global(),
@@ -202,7 +202,7 @@ void Dispatcher::willHandleNavigationPolicy(
202202
v8::Handle<v8::Value> element = v8::Null();
203203
v8::Handle<v8::Object> policy_obj = v8::Object::New();
204204

205-
WebCore::Frame* core_frame = WebKit::toWebFrameImpl(frame)->frame();
205+
WebCore::Frame* core_frame = static_cast<WebKit::WebFrameImpl*>(frame)->frame();
206206
if (core_frame->ownerElement()) {
207207
element = WebCore::toV8((WebCore::HTMLElement*)core_frame->ownerElement(),
208208
frame->mainWorldScriptContext()->Global(),

src/net/app_protocol_handler.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,7 @@ class URLRequestNWAppJob : public net::URLRequestFileJob {
103103
const base::FilePath& file_path,
104104
const std::string& content_security_policy,
105105
bool send_cors_header)
106-
: net::URLRequestFileJob(
107-
request, network_delegate, base::FilePath(),
108-
content::BrowserThread::GetBlockingPool()->
109-
GetTaskRunnerWithShutdownBehavior(
110-
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN)),
106+
: net::URLRequestFileJob(request, network_delegate, base::FilePath()),
111107
content_security_policy_(content_security_policy),
112108
send_cors_header_(send_cors_header),
113109
weak_factory_(this) {

src/renderer/nw_render_view_observer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void NwRenderViewObserver::OnDocumentCallback(RenderViewImpl* rv,
103103
return;
104104
std::string content;
105105
base::FilePath path = rv->renderer_preferences_.nw_app_root_path.Append(js_fn);
106-
if (!base::ReadFileToString(path, &content)) {
106+
if (!file_util::ReadFileToString(path, &content)) {
107107
LOG(WARNING) << "Failed to load js script file: " << path.value();
108108
return;
109109
}

0 commit comments

Comments
 (0)