fix: compile error in netlog (#18443)
This commit is contained in:
parent
54cbe5f749
commit
cbc177708e
2 changed files with 9 additions and 11 deletions
|
@ -92,7 +92,7 @@ v8::Local<v8::Promise> NetLog::StartLogging(mate::Arguments* args) {
|
||||||
|
|
||||||
// TODO(deepak1556): Provide more flexibility to this module
|
// TODO(deepak1556): Provide more flexibility to this module
|
||||||
// by allowing customizations on the capturing options.
|
// by allowing customizations on the capturing options.
|
||||||
auto capture_mode = network::mojom::NetLogCaptureMode::DEFAULT;
|
auto capture_mode = net::NetLogCaptureMode::Default();
|
||||||
auto max_file_size = network::mojom::NetLogExporter::kUnlimitedFileSize;
|
auto max_file_size = network::mojom::NetLogExporter::kUnlimitedFileSize;
|
||||||
|
|
||||||
base::PostTaskAndReplyWithResult(
|
base::PostTaskAndReplyWithResult(
|
||||||
|
@ -105,8 +105,7 @@ v8::Local<v8::Promise> NetLog::StartLogging(mate::Arguments* args) {
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetLog::StartNetLogAfterCreateFile(
|
void NetLog::StartNetLogAfterCreateFile(net::NetLogCaptureMode capture_mode,
|
||||||
network::mojom::NetLogCaptureMode capture_mode,
|
|
||||||
uint64_t max_file_size,
|
uint64_t max_file_size,
|
||||||
base::Value custom_constants,
|
base::Value custom_constants,
|
||||||
base::File output_file) {
|
base::File output_file) {
|
||||||
|
|
|
@ -41,8 +41,7 @@ class NetLog : public mate::TrackableObject<NetLog> {
|
||||||
|
|
||||||
void OnConnectionError();
|
void OnConnectionError();
|
||||||
|
|
||||||
void StartNetLogAfterCreateFile(
|
void StartNetLogAfterCreateFile(net::NetLogCaptureMode capture_mode,
|
||||||
network::mojom::NetLogCaptureMode capture_mode,
|
|
||||||
uint64_t max_file_size,
|
uint64_t max_file_size,
|
||||||
base::Value custom_constants,
|
base::Value custom_constants,
|
||||||
base::File output_file);
|
base::File output_file);
|
||||||
|
|
Loading…
Reference in a new issue