mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Refactor util::prefs
operations to be methods on static struct.
This commit is contained in:
parent
307844a8c1
commit
22928f50ac
30 changed files with 166 additions and 162 deletions
|
@ -81,8 +81,9 @@ use profile_traits::time;
|
|||
use script_traits::ConstellationMsg;
|
||||
use std::rc::Rc;
|
||||
use std::sync::mpsc::Sender;
|
||||
use util::opts;
|
||||
use util::prefs::PREFS;
|
||||
use util::resource_files::resources_dir_path;
|
||||
use util::{opts, prefs};
|
||||
|
||||
pub use gleam::gl;
|
||||
|
||||
|
@ -257,7 +258,7 @@ pub fn run_content_process(token: String) {
|
|||
|
||||
let unprivileged_content = unprivileged_content_receiver.recv().unwrap();
|
||||
opts::set_defaults(unprivileged_content.opts());
|
||||
prefs::extend_prefs(unprivileged_content.prefs());
|
||||
PREFS.extend(unprivileged_content.prefs());
|
||||
|
||||
// Enter the sandbox if necessary.
|
||||
if opts::get().sandbox {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue