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

Issue 3304015: Use PrefChangeRegistrar everywhere (Closed)

Created:
10 years, 3 months ago by danno
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, finnur+watch_chromium.org, idana, dhg, Raghu Simha, Erik does not do reviews, ben+cc_chromium.org, jam, ncarter (slow), brettw-cc_chromium.org, Aaron Boodman, arv (Not doing code reviews), pam+watch_chromium.org, tim (not reviewing), darin-cc_chromium.org, stuartmorgan+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Use PrefChangeRegistrar everywhere BUG=54955 TEST=PrefChangeRegistrarTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60169 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60935

Patch Set 1 #

Patch Set 2 : remove unlanded bug 54620 #

Patch Set 3 : merge with latest #

Patch Set 4 : tweaks #

Patch Set 5 : fix build #

Total comments: 25

Patch Set 6 : review feedback #

Patch Set 7 : more review feedback #

Total comments: 6

Patch Set 8 : more review feedback #

Patch Set 9 : fix linux build #

Patch Set 10 : fix unit test #

Patch Set 11 : fix flaky test #

Patch Set 12 : verify no changes #

Patch Set 13 : phajdan's feedback #

Patch Set 14 : phajdan's feedback #

Total comments: 1

Patch Set 15 : fix nit #

Patch Set 16 : fix convoluted extension test profile #

Patch Set 17 : fix crashing tests #

Patch Set 18 : fix unit tests on linux #

Patch Set 19 : merge with latest #

Patch Set 20 : fix race condition #

Total comments: 1

Patch Set 21 : final version for commit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -246 lines) Patch
M chrome/browser/background_mode_manager.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/background_mode_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/cocoa/content_settings_dialog_controller.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/content_settings_dialog_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +5 lines, -19 lines 0 comments Download
M chrome/browser/cocoa/extensions/extension_action_context_menu.mm View 1 2 3 4 5 6 7 3 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/cocoa/extensions/extension_popup_controller_unittest.mm View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.mm View 1 2 4 chunks +2 lines, -14 lines 0 comments Download
M chrome/browser/dom_ui/core_options_handler.h View 1 2 3 4 5 4 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/core_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/dom_ui/ntp_resource_cache.h View 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/ntp_resource_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -9 lines 0 comments Download
M chrome/browser/dom_ui/shown_sections_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/shown_sections_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_toolbar_model.h View 20 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_toolbar_model.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extensions_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extensions_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +11 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extensions_service_unittest.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/extensions_service_unittest.cc View 11 12 13 14 15 16 17 18 15 chunks +40 lines, -30 lines 0 comments Download
M chrome/browser/gtk/gtk_theme_provider.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/gtk/gtk_theme_provider.cc View 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/gtk/options/general_page_gtk.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/gtk/options/general_page_gtk.cc View 2 chunks +3 lines, -6 lines 0 comments Download
chrome/browser/host_content_settings_map.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/host_content_settings_map.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -9 lines 0 comments Download
M chrome/browser/host_zoom_map.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/host_zoom_map.cc View 1 2 3 4 5 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/host_zoom_map_unittest.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +7 lines, -14 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -10 lines 0 comments Download
M chrome/browser/prefs/pref_change_registrar.h View 1 2 3 4 5 6 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/prefs/pref_change_registrar.cc View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -7 lines 0 comments Download
M chrome/browser/prefs/pref_change_registrar_unittest.cc View 1 2 3 4 5 6 7 3 chunks +31 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_service.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +21 lines, -5 lines 0 comments Download
M chrome/browser/prefs/pref_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +21 lines, -19 lines 0 comments Download
M chrome/browser/prefs/pref_set_observer.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/prefs/pref_set_observer.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -7 lines 0 comments Download
M chrome/browser/profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +6 lines, -9 lines 0 comments Download
M chrome/browser/sync/glue/preference_change_processor.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/preference_change_processor.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/translate/translate_manager.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/translate/translate_manager_unittest.cc View 6 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/views/options/general_page_view.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/views/options/general_page_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/test/testing_profile.h View 11 12 13 14 15 16 7 chunks +24 lines, -2 lines 0 comments Download
M chrome/test/testing_profile.cc View 11 12 13 14 15 16 17 6 chunks +38 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
danno
Please review.
10 years, 3 months ago (2010-09-10 14:17:18 UTC) #1
Mattias Nissler (ping if slow)
Overall looks good, I put some suggestions and pointed out some possible issues that might ...
10 years, 3 months ago (2010-09-10 15:50:35 UTC) #2
danno
http://codereview.chromium.org/3304015/diff/7003/3050 File chrome/browser/dom_ui/core_options_handler.cc (left): http://codereview.chromium.org/3304015/diff/7003/3050#oldcode77 chrome/browser/dom_ui/core_options_handler.cc:77: void CoreOptionsHandler::Uninitialize() { On 2010/09/10 15:50:35, Mattias Nissler wrote: ...
10 years, 3 months ago (2010-09-10 16:28:40 UTC) #3
Mattias Nissler (ping if slow)
LGTM pending the prefs_ removal. http://codereview.chromium.org/3304015/diff/7003/3063 File chrome/browser/net/chrome_url_request_context.cc (right): http://codereview.chromium.org/3304015/diff/7003/3063#newcode660 chrome/browser/net/chrome_url_request_context.cc:660: prefs_ = NULL; On ...
10 years, 3 months ago (2010-09-10 16:49:12 UTC) #4
Pam (message me for reviews)
Zoom, drive-by review. - Pam http://codereview.chromium.org/3304015/diff/9002/50027 File chrome/browser/prefs/pref_change_registrar_unittest.cc (right): http://codereview.chromium.org/3304015/diff/9002/50027#newcode77 chrome/browser/prefs/pref_change_registrar_unittest.cc:77: Mock::VerifyAndClearExpectations(service()); How about checking ...
10 years, 3 months ago (2010-09-12 08:29:39 UTC) #5
danno
Pam, can you please take a quick look at this again? Mattias is on vacation, ...
10 years, 3 months ago (2010-09-21 11:47:09 UTC) #6
Paweł Hajdan Jr.
Drive-by with a test comment. Would it be possible to expose a CreateExtensionsService in TestingProfile ...
10 years, 3 months ago (2010-09-21 11:59:03 UTC) #7
Pam (message me for reviews)
LGTM. I have no strong opinion on Paweł's suggestion -- either way is OK with ...
10 years, 3 months ago (2010-09-21 13:38:27 UTC) #8
danno
I agree, this is annoying and isn't perfect, but there's a chicken-and-egg problem here. The ...
10 years, 3 months ago (2010-09-21 14:34:25 UTC) #9
danno
Pawel, can you take a look at changes since revision 12? Your suggestion ended up ...
10 years, 3 months ago (2010-09-21 15:43:12 UTC) #10
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM with one nit. Thanks! http://codereview.chromium.org/3304015/diff/62003/60050 File chrome/test/testing_profile.h (right): ...
10 years, 3 months ago (2010-09-21 16:01:14 UTC) #11
danno
a few more tweaks necessary to make sure linux tests don't crash. Pawel, can you ...
10 years, 3 months ago (2010-09-24 12:40:00 UTC) #12
Paweł Hajdan Jr.
LGTM
10 years, 3 months ago (2010-09-24 15:01:21 UTC) #13
danno
@Pawel: sorry about this, one more look, please. I finally found the crasher. Just take ...
10 years, 2 months ago (2010-09-29 07:56:48 UTC) #14
Paweł Hajdan Jr.
10 years, 2 months ago (2010-09-29 09:18:13 UTC) #15
LGTMzored

http://codereview.chromium.org/3304015/diff/115001/90019
File chrome/browser/extensions/extensions_service.cc (right):

http://codereview.chromium.org/3304015/diff/115001/90019#newcode572
chrome/browser/extensions/extensions_service.cc:572: DCHECK(!profile_);  //
profile should have told us it's going away.
nit: profile -> Profile

Powered by Google App Engine
This is Rietveld 408576698