Add options to session.fromPartition

This commit is contained in:
Cheng Zhao 2016-07-12 21:53:19 +09:00
parent 00804e5f98
commit e213e09c3e
4 changed files with 19 additions and 9 deletions

View file

@ -192,7 +192,8 @@ void AtomBrowserContext::RegisterPrefs(PrefRegistrySimple* pref_registry) {
// static
scoped_refptr<AtomBrowserContext> AtomBrowserContext::From(
const std::string& partition, bool in_memory) {
const std::string& partition, bool in_memory,
const base::DictionaryValue& options) {
auto browser_context = brightray::BrowserContext::Get(partition, in_memory);
if (browser_context)
return static_cast<AtomBrowserContext*>(browser_context.get());