diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 19:42:31 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-10 19:42:31 +0000 |
commit | 9429b07d66885a0780fa4d3d62507af4cc5b13e2 (patch) | |
tree | 5a4dc23bd28397b6e1039693e77daa50030d1966 /chrome/browser/browser_theme_provider.cc | |
parent | a4bbccd99ba86850c616d39527547d215dd66966 (diff) | |
download | chromium_src-9429b07d66885a0780fa4d3d62507af4cc5b13e2.zip chromium_src-9429b07d66885a0780fa4d3d62507af4cc5b13e2.tar.gz chromium_src-9429b07d66885a0780fa4d3d62507af4cc5b13e2.tar.bz2 |
Force preferences to save immediately when a theme is set, so that a browser crash does not corrupt the theme.
BUG= http://crbug.com/21488
TEST= Install a theme. Force browser crash, and reopen. Note that theme images are not corrupted.
Review URL: http://codereview.chromium.org/200080
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider.cc')
-rw-r--r-- | chrome/browser/browser_theme_provider.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/browser_theme_provider.cc b/chrome/browser/browser_theme_provider.cc index 9905d45..c068c9a 100644 --- a/chrome/browser/browser_theme_provider.cc +++ b/chrome/browser/browser_theme_provider.cc @@ -1091,6 +1091,7 @@ void BrowserThemeProvider::SaveCachedImageData() { pref_images->SetString(UTF8ToWide(pref_name), WideToUTF8(disk_path)); } + profile_->GetPrefs()->SavePersistentPrefs(); } void BrowserThemeProvider::SaveImageData(DictionaryValue* images_value) { |