Pretend to be Chrome by default.

This is used to cheat client web drivers.
This commit is contained in:
Cheng Zhao 2014-09-12 23:28:14 +08:00
parent b8a6658ba9
commit 925ff2da5b
2 changed files with 7 additions and 0 deletions

View file

@ -7,6 +7,8 @@
#include <string>
#include <vector>
#include "atom/common/chrome_version.h"
namespace atom {
AtomContentClient::AtomContentClient() {
@ -15,6 +17,10 @@ AtomContentClient::AtomContentClient() {
AtomContentClient::~AtomContentClient() {
}
std::string AtomContentClient::GetProduct() const {
return "Chrome/" CHROME_VERSION_STRING;
}
void AtomContentClient::AddAdditionalSchemes(
std::vector<std::string>* standard_schemes,
std::vector<std::string>* savable_schemes) {

View file

@ -19,6 +19,7 @@ class AtomContentClient : public brightray::ContentClient {
protected:
// content::ContentClient:
virtual std::string GetProduct() const OVERRIDE;
virtual void AddAdditionalSchemes(
std::vector<std::string>* standard_schemes,
std::vector<std::string>* savable_schemes) OVERRIDE;