Move content/network to services/network.
https://chromium-review.googlesource.com/891646
This commit is contained in:
parent
fba2ab0996
commit
806acbdf12
5 changed files with 21 additions and 20 deletions
|
@ -9,9 +9,9 @@
|
|||
#include "base/command_line.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/values.h"
|
||||
#include "content/public/common/content_switches.h"
|
||||
#include "net/log/file_net_log_observer.h"
|
||||
#include "net/log/net_log_util.h"
|
||||
#include "services/network/public/cpp/network_switches.h"
|
||||
|
||||
namespace brightray {
|
||||
|
||||
|
@ -41,11 +41,11 @@ NetLog::~NetLog() {
|
|||
|
||||
void NetLog::StartLogging() {
|
||||
auto* command_line = base::CommandLine::ForCurrentProcess();
|
||||
if (!command_line->HasSwitch(switches::kLogNetLog))
|
||||
if (!command_line->HasSwitch(network::switches::kLogNetLog))
|
||||
return;
|
||||
|
||||
base::FilePath log_path;
|
||||
log_path = command_line->GetSwitchValuePath(switches::kLogNetLog);
|
||||
base::FilePath log_path =
|
||||
command_line->GetSwitchValuePath(switches::kLogNetLog);
|
||||
if (log_path.empty())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue