chore: modernize Value usage in converters (#34794)
* chore: modernize Value usage in converters * Date is parsed as an empty object now
This commit is contained in:
parent
d28ed0da20
commit
0ee7f14190
34 changed files with 203 additions and 829 deletions
|
@ -44,7 +44,6 @@ using DevicePermissionMap =
|
|||
std::map<blink::PermissionType,
|
||||
std::map<url::Origin, std::vector<std::unique_ptr<base::Value>>>>;
|
||||
|
||||
class ElectronBrowserContext;
|
||||
class ElectronDownloadManagerDelegate;
|
||||
class ElectronPermissionManager;
|
||||
class CookieChangeNotifier;
|
||||
|
@ -82,10 +81,9 @@ class ElectronBrowserContext : public content::BrowserContext {
|
|||
// Get or create the BrowserContext according to its |partition| and
|
||||
// |in_memory|. The |options| will be passed to constructor when there is no
|
||||
// existing BrowserContext.
|
||||
static ElectronBrowserContext* From(
|
||||
const std::string& partition,
|
||||
bool in_memory,
|
||||
base::DictionaryValue options = base::DictionaryValue());
|
||||
static ElectronBrowserContext* From(const std::string& partition,
|
||||
bool in_memory,
|
||||
base::Value::Dict options = {});
|
||||
|
||||
static BrowserContextMap& browser_context_map();
|
||||
|
||||
|
@ -177,7 +175,7 @@ class ElectronBrowserContext : public content::BrowserContext {
|
|||
private:
|
||||
ElectronBrowserContext(const std::string& partition,
|
||||
bool in_memory,
|
||||
base::DictionaryValue options);
|
||||
base::Value::Dict options);
|
||||
|
||||
// Initialize pref registry.
|
||||
void InitPrefs();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue