REVIEW: Subscribe to cookie store for changes in place of CookieMonsterDelegate
This commit is contained in:
parent
60f69ad77b
commit
248d572077
11 changed files with 94 additions and 131 deletions
|
@ -70,8 +70,7 @@ std::string RemoveWhitespace(const std::string& str) {
|
|||
AtomBrowserContext::AtomBrowserContext(const std::string& partition,
|
||||
bool in_memory,
|
||||
const base::DictionaryValue& options)
|
||||
: brightray::BrowserContext(partition, in_memory),
|
||||
cookie_delegate_(new AtomCookieDelegate) {
|
||||
: brightray::BrowserContext(partition, in_memory) {
|
||||
// Construct user agent string.
|
||||
Browser* browser = Browser::Get();
|
||||
std::string name = RemoveWhitespace(browser->GetName());
|
||||
|
@ -108,10 +107,6 @@ AtomBrowserContext::CreateNetworkDelegate() {
|
|||
return base::MakeUnique<AtomNetworkDelegate>();
|
||||
}
|
||||
|
||||
net::CookieMonsterDelegate* AtomBrowserContext::CreateCookieDelegate() {
|
||||
return cookie_delegate();
|
||||
}
|
||||
|
||||
std::string AtomBrowserContext::GetUserAgent() {
|
||||
return user_agent_;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue