fix: compile error in netlog (#18443)

This commit is contained in:
Jeremy Apthorp 2019-05-24 10:54:32 -07:00 committed by GitHub
parent 54cbe5f749
commit cbc177708e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 11 deletions

View file

@ -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) {

View 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);