I have added a preference to pref_names.h/cc.

In chrome/browser/browser.cc, I added the regisration of the user  
preference to ths static Browser::RegisterUserPrefs(PrefService*  
prefs) function:

prefs->RegisterDictionaryPrefs(prefs::kPrinterSettings);

I then set a child string pref of the dictionary using:

browser_->profile()->GetPrefs()->SetString(prefs::kPrinterSettings +  
L".child");

My question is, how do I save the preference? I do this:

browser_->profile()->GetPrefs()->ScheduleSavePersistentPrefs();

What preference file does it save in? I'm on Ubuntu and have been  
looking at ~/.config/chromium/Default/Preferences. Each time I open  
it, my printer setting is not there.

I've also tried adding that setting to the preference file and reading  
it, but after closing the browser, the setting disappears.

Andy


-- 
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev

Reply via email to