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

Issue 10857031: Move PrefMember and PrefChangeRegistrar to api directory. (Closed)

Created:
8 years, 4 months ago by Jói
Modified:
8 years, 2 months ago
CC:
chromium-reviews, jam, sadrul, nkostylev+watch_chromium.org, dhollowa+watch_chromium.org, browser-components-watch_chromium.org, gideonwald, rginda+watch_chromium.org, stuartmorgan+watch_chromium.org, ajwong+watch_chromium.org, markusheintz_, stevenjb+watch_chromium.org, Shishir, yusukes+watch_chromium.org, cbentzel+watch_chromium.org, ben+watch_chromium.org, Ilya Sherman, achuith+watch_chromium.org, dominich, eroman, darin-cc_chromium.org, brettw-cc_chromium.org, tim (not reviewing), dbeam+watch-ntp_chromium.org, Avi (use Gerrit), creis+watch_chromium.org, dyu1, Raghu Simha, ncarter (slow), oshima+watch_chromium.org, Jered, mihaip-chromium-reviews_chromium.org, akalin, tfarina, sreeram, Aaron Boodman, Satish, David Black, mmenke, rdsmith+dwatch_chromium.org, estade+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Move PrefMember and PrefChangeRegistrar to api directory. This is the first step in breaking Autofill's concrete dependency on prefs. These two classes are essentially utilities with very small dependencies back to PrefService (which I will break in the next change, by introducing a virtual PrefServiceBase) so they are suitable for api. TBRing other owners for mechanical changes. TBR=ben@chromium.org BUG=140037 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152544

Patch Set 1 #

Patch Set 2 : Added OWNERS #

Patch Set 3 : Merge to lkgr #

Patch Set 4 : Merge to parent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -1075 lines) Patch
M chrome/browser/api/DEPS View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/api/prefs/DEPS View 1 chunk +6 lines, -0 lines 0 comments Download
A + chrome/browser/api/prefs/OWNERS View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/browser/api/prefs/pref_change_registrar.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/api/prefs/pref_change_registrar.cc View 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/api/prefs/pref_change_registrar_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/api/prefs/pref_member.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/api/prefs/pref_member.cc View 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/api/prefs/pref_member_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/DEPS View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autocomplete_history_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autocomplete_history_manager.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/autofill/autofill_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/background/background_mode_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_process_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/captive_portal/captive_portal_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_event_router.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/gdata/gdata_sync_client.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/input_method/browser_state_monitor.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/input_method/browser_state_monitor_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/preferences.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/preferences.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/preferences_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/proxy_config_service_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/content_settings_default_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/content_settings_policy_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/cookie_settings.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/download/download_prefs.h View 1 chunk +1 line, -1 line 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/download/save_page_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/font_settings/font_settings_api.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/managed_mode/managed_mode_api.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/component_loader.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_preference_api.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/external_policy_loader.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/io_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/net/chrome_network_delegate_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/http_server_properties_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/net_pref_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/ssl_config_service_manager_pref.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/password_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/plugin_prefs.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/plugin_status_pref_setter.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud_policy_refresh_scheduler.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud_policy_subsystem.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/url_blacklist_manager.h View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/prefs/pref_change_registrar.h View 1 chunk +0 lines, -60 lines 0 comments Download
D chrome/browser/prefs/pref_change_registrar.cc View 1 chunk +0 lines, -69 lines 0 comments Download
D chrome/browser/prefs/pref_change_registrar_unittest.cc View 1 chunk +0 lines, -120 lines 0 comments Download
D chrome/browser/prefs/pref_member.h View 1 chunk +0 lines, -248 lines 0 comments Download
D chrome/browser/prefs/pref_member.cc View 1 chunk +0 lines, -172 lines 0 comments Download
D chrome/browser/prefs/pref_member_unittest.cc View 1 chunk +0 lines, -259 lines 0 comments Download
M chrome/browser/prefs/pref_service_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/pref_set_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/scoped_user_pref_update_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/printing/cloud_print/cloud_print_proxy_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_view_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/gaia_info_update_service.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/plugin_info_message_filter.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_tab_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/signin_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/speech/chrome_speech_recognition_preferences.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/spellchecker/spellcheck_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/spellchecker/spellcheck_profile.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/credential_cache_service_win.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/typed_url_data_type_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_prefs.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_errors_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/alternate_error_tab_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/event_rewriter_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_action_context_menu.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gesture_prefs_observer_factory_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_titlebar.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_toolbar_gtk.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/global_menu_bar.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/gtk_theme_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_login_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/keyboard_handler.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/pointer_handler.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/core_options_handler.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/font_settings_handler.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/media_galleries_handler.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/password_manager_handler.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/startup_pages_handler.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/plugins_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Jói
erikwright: Main reviewer. mnissler: For chrome/browser/prefs/OWNERS. I plan to TBR other owners since changes outside ...
8 years, 4 months ago (2012-08-16 11:34:27 UTC) #1
Mattias Nissler (ping if slow)
Sounds reasonable, just two questions: 1. Should we have a chrome/browser/api/prefs/OWNERS file that mirrors chrome/browser/prefs/OWNERS? ...
8 years, 4 months ago (2012-08-16 11:49:51 UTC) #2
tfarina
Instead of PrefServiceBase, can you do the reverse? PrefService # the interface with pure virtual ...
8 years, 4 months ago (2012-08-16 12:03:09 UTC) #3
Jói
Thanks Mattias. Not adding the OWNERS file was an oversight on my part, this is ...
8 years, 4 months ago (2012-08-16 12:04:53 UTC) #4
Jói
Hi Thiago, > PrefService # the interface with pure virtual methods > PrefServiceImpl # the ...
8 years, 4 months ago (2012-08-16 12:11:27 UTC) #5
Jói
Mattias: I uploaded a new patchset that has the OWNERS file. On Thu, Aug 16, ...
8 years, 4 months ago (2012-08-16 12:15:14 UTC) #6
Jói
Mattias: Looking more, it looks like I can probably leave out FindPreference and thus make ...
8 years, 4 months ago (2012-08-16 12:27:16 UTC) #7
Mattias Nissler (ping if slow)
On 2012/08/16 12:04:53, Jói wrote: > Thanks Mattias. > > Not adding the OWNERS file ...
8 years, 4 months ago (2012-08-16 12:42:50 UTC) #8
Jói
Cool, thanks Mattias. I think I can easily split up the syncable vs. non-syncable in ...
8 years, 4 months ago (2012-08-16 12:55:03 UTC) #9
Mattias Nissler (ping if slow)
LGTM for chrome/browser/prefs and chrome/browser/policy On 2012/08/16 12:55:03, Jói wrote: > Cool, thanks Mattias. I ...
8 years, 4 months ago (2012-08-16 12:58:21 UTC) #10
Jói
> Ah, virtual inheritance... Do the style guide and the Chrome elders approve? On the ...
8 years, 4 months ago (2012-08-16 13:01:34 UTC) #11
Jói
Taking a closer look at PrefService, it seems the interface should in fact be split ...
8 years, 4 months ago (2012-08-16 13:19:05 UTC) #12
erikwright (departed)
LGTM.
8 years, 4 months ago (2012-08-16 14:54:44 UTC) #13
Ben Goodger (Google)
The solution here is for prefs to be a toplevel component. not a browser component. ...
8 years, 2 months ago (2012-09-26 15:36:55 UTC) #14
tfarina
On Wed, Sep 26, 2012 at 12:36 PM, <ben@chromium.org> wrote: > The solution here is ...
8 years, 2 months ago (2012-09-26 15:39:23 UTC) #15
Jói
8 years, 2 months ago (2012-09-26 15:44:20 UTC) #16
I'll split this to a separate thread since the change here is already
committed.

Cheers,
Jói


On Wed, Sep 26, 2012 at 3:36 PM,  <ben@chromium.org> wrote:
> The solution here is for prefs to be a toplevel component. not a browser
> component. I thought I already discussed this you? I did disucss with prefs
> owners several months ago and they were in agreement. The reason is we need
> to
> use prefs from elsewhere outside of src/chrome too.
>
> This seems to make things a bit more complicated.
>
> Can you re-do this as a toplevel component?
>
> http://codereview.chromium.org/10857031/

Powered by Google App Engine
This is Rietveld 408576698