]> khamidou — GitHub mirrors - electron.git/commitdiff
Merge pull request #2197 from deepak1556/user_agent_patch
authorCheng Zhao <zcbenz@gmail.com>
Tue, 14 Jul 2015 16:59:09 +0000 (09:59 -0700)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 14 Jul 2015 16:59:09 +0000 (09:59 -0700)
webContents: set http useragent settings when overriding user agent

1  2 
atom/browser/native_window.cc

index 26cb3985386f2b9d644097f619ec5a8c1377c040,b9e765315b6a3ee86aec1f153de1fb7f786d8924..2a093cc81200d083d67afa2172850381472b9b8f
@@@ -8,17 -8,10 +8,14 @@@
  #include <utility>
  #include <vector>
  
 +#if defined(OS_WIN)
 +#include <shlobj.h>
 +#endif
 +
  #include "atom/browser/atom_browser_context.h"
  #include "atom/browser/atom_browser_main_parts.h"
- #include "atom/browser/browser.h"
  #include "atom/browser/window_list.h"
  #include "atom/common/api/api_messages.h"
- #include "atom/common/atom_version.h"
- #include "atom/common/chrome_version.h"
  #include "atom/common/native_mate_converters/image_converter.h"
  #include "atom/common/native_mate_converters/file_path_converter.h"
  #include "atom/common/options_switches.h"