fix lint-cpp
This commit is contained in:
parent
2d771674bb
commit
a01abd0fee
1 changed files with 6 additions and 3 deletions
|
@ -76,13 +76,16 @@ void ToDictionary(base::DictionaryValue* details, net::URLRequest* request) {
|
|||
FillRequestDetails(details, request);
|
||||
details->SetInteger("id", request->identifier());
|
||||
details->SetDouble("timestamp", base::Time::Now().ToDoubleT() * 1000);
|
||||
const content::ResourceRequestInfo* info = content::ResourceRequestInfo::ForRequest(request);
|
||||
const content::ResourceRequestInfo* info
|
||||
= content::ResourceRequestInfo::ForRequest(request);
|
||||
if (info) {
|
||||
int process_id = info->GetChildID();
|
||||
int frame_id = info->GetRenderFrameID();
|
||||
content::WebContents* webContents
|
||||
= content::WebContents::FromRenderFrameHost(content::RenderFrameHost::FromID(process_id, frame_id));
|
||||
details->SetInteger("webContentsId", atom::api::WebContents::GetIDFromWrappedClass(webContents));
|
||||
= content::WebContents::FromRenderFrameHost(
|
||||
content::RenderFrameHost::FromID(process_id, frame_id));
|
||||
details->SetInteger("webContentsId",
|
||||
atom::api::WebContents::GetIDFromWrappedClass(webContents));
|
||||
} else {
|
||||
details->SetString("resourceType", "other");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue