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

Issue 12340111: Introduce //components/user_prefs, use to eliminate c/b/prefs dependency in Autofill. (Closed)

Created:
7 years, 9 months ago by Jói
Modified:
7 years, 9 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, sadrul, nkostylev+watch_chromium.org, dhollowa+watch_chromium.org, rpetterson, ahutter, browser-components-watch_chromium.org, rdsmith+dwatch_chromium.org, rginda+watch_chromium.org, stuartmorgan+watch_chromium.org, dmazzoni+watch_chromium.org, Albert Bodenhamer, markusheintz_, benjhayden+dwatch_chromium.org, Ilya Sherman, cbentzel+watch_chromium.org, vsevik, Aaron Boodman, aboxhall+watch_chromium.org, stevenjb+watch_chromium.org, jam, dbeam+watch-autofill_chromium.org, dominich, sail+watch_chromium.org, darin-cc_chromium.org, Raghu Simha, groby+spellwatch_chromium.org, chromium-apps-reviews_chromium.org, erikwright+watch_chromium.org, tim (not reviewing), pedrosimonetti+watch_chromium.org, dbeam+watch-ntp_chromium.org, dtseng+watch_chromium.org, yoshiki+watch_chromium.org, rouslan+spellwatch_chromium.org, yuzo+watch_chromium.org, gideonwald, feature-media-reviews_chromium.org, samarth+watch_chromium.org, pam+watch_chromium.org, oshima+watch_chromium.org, Raman Kakilate, haitaol1, ctguil+watch_chromium.org, pfeldman, Jered, zork+watch_chromium.org, akalin, hashimoto+watch_chromium.org, tfarina, ben+watch_chromium.org, sreeram, yurys, davidbarr+watch_chromium.org, benquan, David Black, Dane Wallinga, dyu1, estade+watch_chromium.org, melevin, davemoore+watch_chromium.org, kaiwang
Visibility:
Public.

Description

Introduce //components/user_prefs. The user_prefs component provides: a) The UserPrefs class, used to map PrefService objects to BrowserContext. This addresses a TODO to get rid of PrefServiceFromBrowserContext from base/prefs/pref_service.h, where clearly a mention of a content class did not belong. b) A place for PrefRegistrySyncable to live, where it can be used by components that need to register prefs. We also use (b) in this change to eliminate Autofill's dependency on chrome/browser/prefs. Work is ongoing to move Autofill to //components/autofill. TBR=ben@chromium.org BUG=155525, 140037 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186301

Patch Set 1 #

Total comments: 10

Patch Set 2 : Add README and update c/b/autofill/DEPS. #

Total comments: 1

Patch Set 3 : Address review comments. #

Patch Set 4 : Address review comments. #

Patch Set 5 : Fix tests. #

Patch Set 6 : . #

Total comments: 8

Patch Set 7 : Switch to hanging off BrowserContext. #

Patch Set 8 : Fix TestingProfile. #

Patch Set 9 : Merge LKGR (pure merge). #

Patch Set 10 : Switch ownership back to embedder. #

Patch Set 11 : Fix build. #

Total comments: 4

Patch Set 12 : Address review nits. #

Patch Set 13 : Fix incognito. #

Patch Set 14 : Pure merge of LKGR #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+366 lines, -510 lines) Patch
M base/prefs/pref_service.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -10 lines 0 comments Download
M base/prefs/pref_service.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/accessibility/invert_bubble_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autofill/DEPS View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autocomplete_history_manager.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_common_test.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/autofill/autofill_download.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.cc View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/autofill/autofill_manager_unittest.cc View 1 2 3 4 5 6 6 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/background/background_contents_service_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_expanded_state_tracker.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_prompt_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chrome_to_mobile_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/accessibility/magnification_manager_browsertest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/language_preferences.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/language_preferences.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/oauth2_login_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/proxy_config_service_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/content_settings_default_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/content_settings_policy_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/cookie_settings.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/devtools/devtools_window.cc View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/download/download_prefs.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_apitest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/bookmarks/bookmarks_api.cc View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/commands/command_service.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/component_loader_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/default_apps.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_web_ui.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/platform_app_browsertest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/test_extension_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/google/google_url_tracker_factory.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/managed_mode/managed_mode_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/managed_mode/managed_user_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/media_stream_devices_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media_galleries/media_galleries_preferences.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/media_galleries/media_galleries_preferences_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/http_server_properties_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/net_pref_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/predictor.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/pref_proxy_config_tracker_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/password_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_x.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/pepper_flash_settings_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/plugins/plugin_prefs_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/url_blacklist_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/user_policy_signin_service_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.cc View 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/prefs/incognito_mode_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/prefs/pref_registry_syncable.h View 1 chunk +0 lines, -110 lines 0 comments Download
D chrome/browser/prefs/pref_registry_syncable.cc View 1 chunk +0 lines, -220 lines 0 comments Download
M chrome/browser/prefs/pref_service_mock_builder.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/pref_service_syncable.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/pref_service_syncable_builder.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/proxy_policy_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/scoped_user_pref_update_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/session_startup_pref.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/session_startup_pref_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/cloud_print/cloud_print_url.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_dialog_cloud.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/profiles/chrome_version_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/gaia_info_update_service_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_keyed_base_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/search_engines/template_url_service_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/about_signin_internals_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/signin_manager_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/speech/chrome_speech_recognition_preferences.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/spellchecker/spellcheck_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/sync/invalidations/invalidator_storage.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_preference_unittest.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_prefs.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/themes/theme_service_factory.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/translate/translate_prefs.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/alternate_error_tab_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_context_menu_controller.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_utils.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_ui_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/window_size_autosaver_unittest.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gesture_prefs_observer_factory_aura.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/network_profile_bubble.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/startup/autolaunch_prompt.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/startup/autolaunch_prompt_win.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/tabs/pinned_tab_codec.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/home_button.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extension_settings_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/instant_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/android/promo_handler.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/app_launcher_handler.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/foreign_session_handler.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_handler.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/suggestions_page_handler.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/preferences_browsertest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/plugins_ui.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/sticky_settings.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/web_resource/notification_promo.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/web_resource/promo_resource_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi 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/test/DEPS View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/test/base/testing_pref_service_syncable.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -0 lines 0 comments Download
M components/OWNERS View 1 chunk +5 lines, -0 lines 0 comments Download
M components/components.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A components/user_prefs.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +32 lines, -0 lines 0 comments Download
A + components/user_prefs/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A + components/user_prefs/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A components/user_prefs/README View 1 1 chunk +8 lines, -0 lines 0 comments Download
A + components/user_prefs/pref_registry_syncable.h View 1 2 3 chunks +13 lines, -4 lines 1 comment Download
A + components/user_prefs/pref_registry_syncable.cc View 1 chunk +1 line, -1 line 0 comments Download
A components/user_prefs/user_prefs.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +49 lines, -0 lines 0 comments Download
A components/user_prefs/user_prefs.cc View 1 2 3 4 5 6 7 8 9 1 chunk +44 lines, -0 lines 0 comments Download
A components/user_prefs/user_prefs_export.h View 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
Jói
Hi Mattias, Outside of the A and A+ files, base/prefs/pref_service.(h|cc) and DEPS files, there are ...
7 years, 9 months ago (2013-02-27 15:05:57 UTC) #1
tfarina
Wow, this is cool Joi! Do you mind adding a README file to //components/user_prefs describing ...
7 years, 9 months ago (2013-02-27 15:08:01 UTC) #2
Jói
> Do you mind adding a README file to //components/user_prefs describing what > it > ...
7 years, 9 months ago (2013-02-27 15:11:53 UTC) #3
tfarina
https://codereview.chromium.org/12340111/diff/1/components/user_prefs.gypi File components/user_prefs.gypi (right): https://codereview.chromium.org/12340111/diff/1/components/user_prefs.gypi#newcode1 components/user_prefs.gypi:1: # Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 9 months ago (2013-02-27 15:17:48 UTC) #4
Mattias Nissler (ping if slow)
Before I do full pass through this and and stamp it, I'd like to understand ...
7 years, 9 months ago (2013-02-27 15:29:27 UTC) #5
Jói
> Before I do full pass through this and and stamp it, I'd like to ...
7 years, 9 months ago (2013-02-27 15:34:13 UTC) #6
Mattias Nissler (ping if slow)
On Wed, Feb 27, 2013 at 4:33 PM, Jói Sigurðsson <joi@chromium.org> wrote: > > Before ...
7 years, 9 months ago (2013-02-27 15:48:58 UTC) #7
Mattias Nissler (ping if slow)
LGTM. One suggestion that you may choose to ignore. https://codereview.chromium.org/12340111/diff/5001/components/user_prefs/user_prefs.h File components/user_prefs/user_prefs.h (right): https://codereview.chromium.org/12340111/diff/5001/components/user_prefs/user_prefs.h#newcode40 components/user_prefs/user_prefs.h:40: ...
7 years, 9 months ago (2013-02-27 16:16:42 UTC) #8
Jói
>> Components that need it would #include the class directly and >> implement a ComponentName::RegisterUserPrefs ...
7 years, 9 months ago (2013-02-27 16:55:41 UTC) #9
Jói
Elliot: Could you take a look at chrome/browser/profiles/* ? That (specifically the one-time initialization of ...
7 years, 9 months ago (2013-02-28 14:43:37 UTC) #10
Elliot Glaysher
https://codereview.chromium.org/12340111/diff/16001/components/user_prefs/user_prefs.h File components/user_prefs/user_prefs.h (right): https://codereview.chromium.org/12340111/diff/16001/components/user_prefs/user_prefs.h#newcode18 components/user_prefs/user_prefs.h:18: }; The dependency on content isn't reflected in the ...
7 years, 9 months ago (2013-02-28 21:13:18 UTC) #11
tfarina
https://codereview.chromium.org/12340111/diff/16001/components/user_prefs/user_prefs.h File components/user_prefs/user_prefs.h (right): https://codereview.chromium.org/12340111/diff/16001/components/user_prefs/user_prefs.h#newcode18 components/user_prefs/user_prefs.h:18: }; On 2013/02/28 21:13:18, Elliot Glaysher wrote: > The ...
7 years, 9 months ago (2013-02-28 21:40:49 UTC) #12
Jói
Thanks Elliot. I would like to know more about what you're proposing, see below. Cheers, ...
7 years, 9 months ago (2013-02-28 21:45:59 UTC) #13
Elliot Glaysher
https://codereview.chromium.org/12340111/diff/16001/components/user_prefs/user_prefs.h File components/user_prefs/user_prefs.h (right): https://codereview.chromium.org/12340111/diff/16001/components/user_prefs/user_prefs.h#newcode18 components/user_prefs/user_prefs.h:18: }; On 2013/02/28 21:40:49, tfarina wrote: > On 2013/02/28 ...
7 years, 9 months ago (2013-02-28 21:47:23 UTC) #14
Jói
Do you feel that the gyp file should state a dependency, when the linker will ...
7 years, 9 months ago (2013-02-28 21:58:45 UTC) #15
Elliot Glaysher
https://codereview.chromium.org/12340111/diff/16001/chrome/browser/profiles/profile.cc File chrome/browser/profiles/profile.cc (right): https://codereview.chromium.org/12340111/diff/16001/chrome/browser/profiles/profile.cc#newcode57 chrome/browser/profiles/profile.cc:57: components::UserPrefs* user_prefs = components::UserPrefs::GetInstance(); You mentioned ContetnClient. If this ...
7 years, 9 months ago (2013-02-28 21:58:55 UTC) #16
Elliot Glaysher
+jam to settle a question of dependencies. The new components/user_prefs component forward declares a type ...
7 years, 9 months ago (2013-02-28 22:02:59 UTC) #17
Jói
> Putting it here doesn't make it feel like this is startup code, but > ...
7 years, 9 months ago (2013-02-28 22:05:14 UTC) #18
Jói
> I do. This is still exposing information about one component to another. > content/ ...
7 years, 9 months ago (2013-02-28 22:10:04 UTC) #19
Jói
Hey Elliot, I just realized that BrowserContext is already a SupportsUserData. I think hanging the ...
7 years, 9 months ago (2013-02-28 22:16:17 UTC) #20
Jói
Mattias: This will mean //components/user_prefs shrinks down to just PrefRegistrySyncable, at which point I'll just ...
7 years, 9 months ago (2013-02-28 22:25:34 UTC) #21
Elliot Glaysher
-jam: question solved another way. On 2013/02/28 22:16:17, Jói wrote: > I just realized that ...
7 years, 9 months ago (2013-02-28 22:33:54 UTC) #22
Mattias Nissler (ping if slow)
On Thu, Feb 28, 2013 at 11:24 PM, Jói Sigurðsson <joi@chromium.org> wrote: > Mattias: This ...
7 years, 9 months ago (2013-03-01 09:59:54 UTC) #23
Jói
PTAL, I've switched to a SupportsUserData approach. The real changes from the last patch set ...
7 years, 9 months ago (2013-03-01 14:53:52 UTC) #24
Jói
> The real changes from the last patch set reviewed are in profile_impl.h|cc, > profile.cc ...
7 years, 9 months ago (2013-03-01 15:19:15 UTC) #25
Mattias Nissler (ping if slow)
LGTM
7 years, 9 months ago (2013-03-01 18:59:40 UTC) #26
Elliot Glaysher
ty for the fix. lgtm.
7 years, 9 months ago (2013-03-01 20:36:35 UTC) #27
Jói
Tests revealed that moving ownership to the user data object is premature, that will need ...
7 years, 9 months ago (2013-03-04 14:52:11 UTC) #28
tfarina
https://codereview.chromium.org/12340111/diff/15163/components/user_prefs.gypi File components/user_prefs.gypi (right): https://codereview.chromium.org/12340111/diff/15163/components/user_prefs.gypi#newcode13 components/user_prefs.gypi:13: '../base/base.gyp:base_prefs', duplicated https://codereview.chromium.org/12340111/diff/15163/components/user_prefs/user_prefs.h File components/user_prefs/user_prefs.h (right): https://codereview.chromium.org/12340111/diff/15163/components/user_prefs/user_prefs.h#newcode17 components/user_prefs/user_prefs.h:17: }; ...
7 years, 9 months ago (2013-03-04 16:30:51 UTC) #29
Elliot Glaysher
slgtm
7 years, 9 months ago (2013-03-04 18:56:54 UTC) #30
Jói
https://codereview.chromium.org/12340111/diff/15163/components/user_prefs.gypi File components/user_prefs.gypi (right): https://codereview.chromium.org/12340111/diff/15163/components/user_prefs.gypi#newcode13 components/user_prefs.gypi:13: '../base/base.gyp:base_prefs', On 2013/03/04 16:30:52, tfarina wrote: > duplicated Done. ...
7 years, 9 months ago (2013-03-05 20:54:19 UTC) #31
Jói
TBR=ben@chromium.org for trivial updates in many places. mnissler@ has reviewed the entire change, and is ...
7 years, 9 months ago (2013-03-05 21:02:50 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/12340111/40001
7 years, 9 months ago (2013-03-05 21:03:57 UTC) #33
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 9 months ago (2013-03-05 21:13:04 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/12340111/40001
7 years, 9 months ago (2013-03-05 21:26:31 UTC) #35
commit-bot: I haz the power
Change committed as 186301
7 years, 9 months ago (2013-03-06 00:42:51 UTC) #36
tfarina
https://chromiumcodereview.appspot.com/12340111/diff/40001/components/user_prefs/pref_registry_syncable.h File components/user_prefs/pref_registry_syncable.h (right): https://chromiumcodereview.appspot.com/12340111/diff/40001/components/user_prefs/pref_registry_syncable.h#newcode31 components/user_prefs/pref_registry_syncable.h:31: class USER_PREFS_EXPORT PrefRegistrySyncable : public PrefRegistry { just noticed ...
7 years, 9 months ago (2013-03-06 02:59:22 UTC) #37
Jói
7 years, 9 months ago (2013-03-06 03:06:51 UTC) #38
> USER_PREFS_EXPORT PrefRegistrySyncable : public PrefRegistry {
> just noticed that UserPrefs was put in components namespace. Was this
> intended for PrefRegistrySyncable too, but not done, given the number of
> usages in //chrome?

It should be done for PrefRegistrySyncable as well. I meant to add a
TODO but it seems that I forgot.

On Tue, Mar 5, 2013 at 6:59 PM,  <tfarina@chromium.org> wrote:
>
>
https://chromiumcodereview.appspot.com/12340111/diff/40001/components/user_pr...
> File components/user_prefs/pref_registry_syncable.h (right):
>
>
https://chromiumcodereview.appspot.com/12340111/diff/40001/components/user_pr...
> components/user_prefs/pref_registry_syncable.h:31: class
> USER_PREFS_EXPORT PrefRegistrySyncable : public PrefRegistry {
> just noticed that UserPrefs was put in components namespace. Was this
> intended for PrefRegistrySyncable too, but not done, given the number of
> usages in //chrome?
>
> https://chromiumcodereview.appspot.com/12340111/

Powered by Google App Engine
This is Rietveld 408576698