Add ses.getUserAgent()/setUserAgent(...) APIs
This commit is contained in:
parent
9c8e64f268
commit
01bc8305f8
7 changed files with 53 additions and 31 deletions
|
@ -88,12 +88,15 @@ AtomBrowserContext::AtomBrowserContext(const std::string& partition,
|
|||
AtomBrowserContext::~AtomBrowserContext() {
|
||||
}
|
||||
|
||||
void AtomBrowserContext::SetUserAgent(const std::string& user_agent) {
|
||||
user_agent_ = user_agent;
|
||||
}
|
||||
|
||||
net::NetworkDelegate* AtomBrowserContext::CreateNetworkDelegate() {
|
||||
return network_delegate_;
|
||||
}
|
||||
|
||||
std::string AtomBrowserContext::GetUserAgent() {
|
||||
LOG(ERROR) << "GetUserAgent";
|
||||
return user_agent_;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue