Move GetUserAgent from ContentClient to ContentBrowserClient

1352086
This commit is contained in:
deepak1556 2019-01-22 00:02:34 +05:30
parent abec938b0a
commit e1502f6953
9 changed files with 42 additions and 42 deletions

View file

@ -8,6 +8,7 @@
#include <utility>
#include "atom/browser/io_thread.h"
#include "atom/common/application_info.h"
#include "atom/common/options_switches.h"
#include "base/command_line.h"
#include "base/lazy_instance.h"
@ -222,6 +223,8 @@ SystemNetworkContextManager::CreateNetworkContextParams() {
network_context_params->context_name = std::string("system");
network_context_params->user_agent = atom::GetApplicationUserAgent();
network_context_params->http_cache_enabled = false;
// These are needed for PAC scripts that use file or data URLs (Or FTP URLs?).