|
Remove the last usages of PrefObserver outside of Prefs.
This involved:
a) Removing methods that used PrefObserver from PrefChangeRegistrar and PrefMember.
b) Removing implementation of PrefObserver from a few remaining classes.
c) Removing NULL PrefObserver parameter for classes using PrefMember but not wishing for a callback.
d) Updating unit tests and test utility classes.
Also fixed what was most likely a bug (or at least an unintentional change in behavior) that I had introduced in CoreChromeOSOptionsHandler in a previous change. Before my series of PrefObserver-related changes, there was polymorphism involved and the subclass was only handling pref changes for a couple of preferences (kProxy and kUseSharedProxy, only one of which it registers for itself) if the PrefService was the standard one, not the incognito one, otherwise delegating to the parent class.
[email protected]
BUG= 155525
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171002
Total comments: 18
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+286 lines, -320 lines) |
Patch |
 |
M |
base/prefs/public/pref_change_registrar.h
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
base/prefs/public/pref_change_registrar.cc
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
base/prefs/public/pref_change_registrar_unittest.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+27 lines, -36 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/api/prefs/pref_member.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+2 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/api/prefs/pref_member.cc
|
View
|
1
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/api/prefs/pref_member_unittest.cc
|
View
|
1
2
|
8 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/autofill/autocomplete_history_manager.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/input_method/browser_state_monitor_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/login/login_utils.cc
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/preferences_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/proxy_config_service_impl.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/download/download_prefs.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/save_package_file_picker.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_prefs_unittest.cc
|
View
|
1
2
|
2 chunks |
+17 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/chrome_http_user_agent_settings.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/chrome_network_delegate.cc
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/net/net_error_tab_helper.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/password_manager/password_manager.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/plugins/plugin_status_pref_setter.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/plugins/plugin_status_pref_setter.cc
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
chrome/browser/prefs/mock_pref_change_callback.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+14 lines, -10 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/prefs/mock_pref_change_callback.cc
|
View
|
1
2
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_notifier_impl_unittest.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+19 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_observer_mock.h
|
View
|
1
2
|
1 chunk |
+0 lines, -48 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_observer_mock.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_service_unittest.cc
|
View
|
1
2
3
4
5
6
|
9 chunks |
+37 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/scoped_user_pref_update_unittest.cc
|
View
|
1
2
|
6 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/off_the_record_profile_io_data.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_impl_io_data.cc
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile_io_data.cc
|
View
|
1
2
3
4
5
6
|
3 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/plugin_info_message_filter.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/spellchecker/spellcheck_service.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/tab_contents/spelling_menu_observer.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/event_rewriter_unittest.cc
|
View
|
1
2
3
4
5
|
16 chunks |
+17 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/extensions/extension_action_context_menu.mm
|
View
|
1
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gesture_prefs_observer_factory_aura.cc
|
View
|
1
2
3
|
5 chunks |
+7 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
|
View
|
1
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/extensions/disabled_extensions_view.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.h
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/options/chromeos/core_chromeos_options_handler.cc
|
View
|
1
2
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/options/clear_browser_data_handler.cc
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/options/core_options_handler.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/options/core_options_handler.cc
|
View
|
|
2 chunks |
+20 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/options/font_settings_handler.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/plugins_ui.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|