Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3603)

Unified Diff: chrome/browser/background/background_contents_service.cc

Issue 8198007: Remove PrefService::ScheduleSavePersistentPrefs and SavePersistentPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/background/background_contents_service.cc
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc
index e9e310d9f1d9000fbe3f0a1771d059929c27bbfb..016e78ddba6ee505cd6ea5c9206b050342fbd9bf 100644
--- a/chrome/browser/background/background_contents_service.cc
+++ b/chrome/browser/background/background_contents_service.cc
@@ -498,7 +498,6 @@ void BackgroundContentsService::RegisterBackgroundContents(
dict->SetString(kUrlKey, background_contents->GetURL().spec());
dict->SetString(kFrameNameKey, contents_map_[appid].frame_name);
pref->SetWithoutPathExpansion(UTF16ToUTF8(appid), dict);
- prefs_->ScheduleSavePersistentPrefs();
}
void BackgroundContentsService::UnregisterBackgroundContents(
@@ -509,7 +508,6 @@ void BackgroundContentsService::UnregisterBackgroundContents(
const string16 appid = GetParentApplicationId(background_contents);
DictionaryPrefUpdate update(prefs_, prefs::kRegisteredBackgroundContents);
update.Get()->RemoveWithoutPathExpansion(UTF16ToUTF8(appid), NULL);
- prefs_->ScheduleSavePersistentPrefs();
}
void BackgroundContentsService::ShutdownAssociatedBackgroundContents(
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_utils.cc » ('j') | chrome/browser/chromeos/accessibility_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698