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

Issue 8198007: Remove PrefService::ScheduleSavePersistentPrefs and SavePersistentPrefs. (Closed)

Created:
9 years, 2 months ago by Bernhard Bauer
Modified:
8 years, 12 months ago
CC:
chromium-reviews, idana, stevenjb, nkostylev+watch_chromium.org, hashimoto+watch_chromium.org, ncarter (slow), aboxhall+watch_chromium.org, tfarina, Erik does not do reviews, tim (not reviewing), yoshiki+watch_chromium.org, mihaip+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, Aaron Boodman, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, Paweł Hajdan Jr., ctguil+watch_chromium.org, Raghu Simha, davemoore+watch_chromium.org, zork+watch_chromium.org
Visibility:
Public.

Description

Remove PrefService::ScheduleSavePersistentPrefs and change SavePersistentPrefs calls to CommitPendingWrites. TBR=ncarter@chromium.org BUG=99306 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115829

Patch Set 1 #

Patch Set 2 : sync #

Patch Set 3 : fix compile #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : review #

Patch Set 6 : review #

Patch Set 7 : fix chromeos #

Total comments: 7

Patch Set 8 : review #

Patch Set 9 : sync #

Patch Set 10 : fix #

Patch Set 11 : sync #

Patch Set 12 : fix #

Patch Set 13 : sync #

Patch Set 14 : fix #

Patch Set 15 : fix #

Patch Set 16 : fix #

Patch Set 17 : fix #

Patch Set 18 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -206 lines) Patch
M chrome/browser/background/background_contents_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_shutdown.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/audio_mixer_alsa.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/locale_change_guard.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/chromeos/login/base_login_display_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/language_switch_menu.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/status/input_method_menu.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/apps_promo.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/default_apps.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +1 line, -17 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_toolbar_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_updater.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/importer/profile_writer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/prefs/overlay_user_pref_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/prefs/overlay_user_pref_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/prefs/pref_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -11 lines 0 comments Download
M chrome/browser/prefs/pref_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/prefs/testing_pref_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/prefs/testing_pref_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/sync/signin_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/sync/sync_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/tabs/pinned_tab_codec.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/translate/translate_prefs.cc View 5 chunks +8 lines, -21 lines 0 comments Download
M chrome/browser/ui/auto_login_prompter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_init.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/options2/core_options_handler2.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/common/json_pref_store.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +1 line, -2 lines 0 comments Download
M chrome/common/json_pref_store.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/common/json_pref_store_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/persistent_pref_store.h View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/service/service_process_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
Bernhard Bauer
Please review. Nick: OWNERS approval for sync Miranda: OWNERS approval for profiles Mattias: Rest :)
9 years, 2 months ago (2011-10-11 18:32:41 UTC) #1
battre
http://codereview.chromium.org/8198007/diff/6001/chrome/browser/chromeos/login/user_manager.cc File chrome/browser/chromeos/login/user_manager.cc (right): http://codereview.chromium.org/8198007/diff/6001/chrome/browser/chromeos/login/user_manager.cc#newcode77 chrome/browser/chromeos/login/user_manager.cc:77: local_state->CommitPendingWrite(); DictionaryPrefUpdate triggers a ScheduleSavePersistentPrefs() on *destruction*. oauth_status_update is ...
9 years, 2 months ago (2011-10-11 18:46:22 UTC) #2
Miranda Callahan
LGTM for profile code changes. On 2011/10/11 18:46:22, battre wrote: > http://codereview.chromium.org/8198007/diff/6001/chrome/browser/chromeos/login/user_manager.cc > File chrome/browser/chromeos/login/user_manager.cc ...
9 years, 2 months ago (2011-10-11 18:57:13 UTC) #3
Bernhard Bauer
http://codereview.chromium.org/8198007/diff/6001/chrome/browser/chromeos/login/user_manager.cc File chrome/browser/chromeos/login/user_manager.cc (right): http://codereview.chromium.org/8198007/diff/6001/chrome/browser/chromeos/login/user_manager.cc#newcode77 chrome/browser/chromeos/login/user_manager.cc:77: local_state->CommitPendingWrite(); On 2011/10/11 18:46:23, battre wrote: > DictionaryPrefUpdate triggers ...
9 years, 2 months ago (2011-10-11 19:24:20 UTC) #4
Mattias Nissler (ping if slow)
In general looks good, some minor comments. http://codereview.chromium.org/8198007/diff/7002/chrome/browser/chromeos/accessibility_util.cc File chrome/browser/chromeos/accessibility_util.cc (right): http://codereview.chromium.org/8198007/diff/7002/chrome/browser/chromeos/accessibility_util.cc#newcode98 chrome/browser/chromeos/accessibility_util.cc:98: // TODO(dmazzoni) ...
9 years, 2 months ago (2011-10-12 09:23:39 UTC) #5
Bernhard Bauer
http://codereview.chromium.org/8198007/diff/7002/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (left): http://codereview.chromium.org/8198007/diff/7002/chrome/browser/profiles/profile_impl.cc#oldcode928 chrome/browser/profiles/profile_impl.cc:928: prefs_->ScheduleSavePersistentPrefs(); On 2011/10/12 09:23:39, Mattias Nissler wrote: > At ...
9 years, 2 months ago (2011-10-12 11:00:10 UTC) #6
Bernhard Bauer
http://codereview.chromium.org/8198007/diff/7002/chrome/browser/chromeos/accessibility_util.cc File chrome/browser/chromeos/accessibility_util.cc (right): http://codereview.chromium.org/8198007/diff/7002/chrome/browser/chromeos/accessibility_util.cc#newcode98 chrome/browser/chromeos/accessibility_util.cc:98: // TODO(dmazzoni) remove once http://crosbug.com/19491 is fixed. On 2011/10/12 ...
9 years, 2 months ago (2011-10-12 11:02:05 UTC) #7
Mattias Nissler (ping if slow)
http://codereview.chromium.org/8198007/diff/7002/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (left): http://codereview.chromium.org/8198007/diff/7002/chrome/browser/profiles/profile_impl.cc#oldcode928 chrome/browser/profiles/profile_impl.cc:928: prefs_->ScheduleSavePersistentPrefs(); On 2011/10/12 11:00:11, Bernhard Bauer wrote: > On ...
9 years, 2 months ago (2011-10-12 11:02:26 UTC) #8
Mattias Nissler (ping if slow)
On 2011/10/12 11:02:26, Mattias Nissler wrote: > http://codereview.chromium.org/8198007/diff/7002/chrome/browser/profiles/profile_impl.cc > File chrome/browser/profiles/profile_impl.cc (left): > > http://codereview.chromium.org/8198007/diff/7002/chrome/browser/profiles/profile_impl.cc#oldcode928 ...
9 years, 2 months ago (2011-10-13 12:49:49 UTC) #9
Bernhard Bauer
On 2011/10/13 12:49:49, Mattias Nissler wrote: > On 2011/10/12 11:02:26, Mattias Nissler wrote: > > ...
9 years, 2 months ago (2011-10-13 14:16:37 UTC) #10
Bernhard Bauer
On 2011/10/13 14:16:37, Bernhard Bauer wrote: > On 2011/10/13 12:49:49, Mattias Nissler wrote: > > ...
9 years, 2 months ago (2011-10-17 15:36:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bauerb@chromium.org/8198007/41055
8 years, 12 months ago (2011-12-27 15:19:04 UTC) #12
commit-bot: I haz the power
8 years, 12 months ago (2011-12-27 16:41:52 UTC) #13
Change committed as 115829

Powered by Google App Engine
This is Rietveld 408576698