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

Issue 2719833002: Convert TrackedPreferenceValidationDelegate into a mojo interface. (Closed)

Created:
3 years, 9 months ago by Sam McNally
Modified:
3 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, blundell+watchlist_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, darin (slow to review), droger+watchlist_chromium.org, grt+watch_chromium.org, qsr+mojo_chromium.org, sdefresne+watchlist_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, gab
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert TrackedPreferenceValidationDelegate into a mojo interface. Currently, the C++ interface TrackedPreferenceValidationDelegate is used to communicate between two components, both running on the same thread. Once prefs is servicified, this direct path will no longer be available. In preparation for this, this CL converts this interface to be a mojo interface. This also removes the unused |dict_value| parameter from OnSplitPreferenceValidation(). BUG=654988 Review-Url: https://codereview.chromium.org/2719833002 Cr-Commit-Position: refs/heads/master@{#455342} Committed: https://chromium.googlesource.com/chromium/src/+/2c885e024b61f6f0bf1cb7b5624b2b202917c0de

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : rebase #

Total comments: 1

Patch Set 4 : rebase #

Total comments: 9

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+413 lines, -200 lines) Patch
M chrome/browser/prefs/chrome_pref_service_factory.h View 1 2 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/profile_pref_store_manager.h View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/prefs/profile_pref_store_manager.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/profile_pref_store_manager_unittest.cc View 1 2 3 4 5 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.h View 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.h View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/preference_validation_delegate_unittest.cc View 1 2 3 9 chunks +14 lines, -20 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 2 3 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/services_delegate.h View 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/services_delegate_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/services_delegate_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/services_delegate_stub.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/services_delegate_stub.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M components/user_prefs/tracked/BUILD.gn View 2 chunks +4 lines, -1 line 0 comments Download
M components/user_prefs/tracked/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/user_prefs/tracked/mock_validation_delegate.h View 1 4 chunks +34 lines, -7 lines 0 comments Download
M components/user_prefs/tracked/mock_validation_delegate.cc View 1 4 chunks +31 lines, -25 lines 0 comments Download
M components/user_prefs/tracked/pref_hash_filter.h View 2 chunks +7 lines, -2 lines 0 comments Download
M components/user_prefs/tracked/pref_hash_filter.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/user_prefs/tracked/pref_hash_filter_unittest.cc View 1 2 3 11 chunks +34 lines, -30 lines 0 comments Download
M components/user_prefs/tracked/tracked_atomic_preference.h View 2 chunks +12 lines, -7 lines 0 comments Download
M components/user_prefs/tracked/tracked_atomic_preference.cc View 3 chunks +6 lines, -7 lines 0 comments Download
D components/user_prefs/tracked/tracked_preference_validation_delegate.h View 1 chunk +0 lines, -47 lines 0 comments Download
M components/user_prefs/tracked/tracked_split_preference.h View 3 chunks +12 lines, -7 lines 0 comments Download
M components/user_prefs/tracked/tracked_split_preference.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 chunk +1 line, -0 lines 0 comments Download
M services/preferences/public/cpp/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A services/preferences/public/cpp/OWNERS View 1 chunk +4 lines, -0 lines 0 comments Download
A services/preferences/public/cpp/tracked_preference_validation_delegate.typemap View 1 chunk +14 lines, -0 lines 0 comments Download
A services/preferences/public/cpp/tracked_preference_validation_delegate_struct_traits.h View 1 chunk +28 lines, -0 lines 0 comments Download
A services/preferences/public/cpp/tracked_preference_validation_delegate_struct_traits.cc View 1 chunk +69 lines, -0 lines 0 comments Download
A services/preferences/public/cpp/typemaps.gni View 1 chunk +5 lines, -0 lines 0 comments Download
M services/preferences/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A services/preferences/public/interfaces/tracked_preference_validation_delegate.mojom View 1 2 3 4 1 chunk +56 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (40 generated)
Sam McNally
3 years, 9 months ago (2017-02-27 04:26:57 UTC) #20
tibell
lgtm
3 years, 9 months ago (2017-03-02 04:17:21 UTC) #29
Sam McNally
+mlerman for //chrome/browser/profiles +mattm for //chrome/browser/safe_browsing +rockot for //services and //mojo +bauerb for //components/user_prefs/tracked and ...
3 years, 9 months ago (2017-03-02 04:35:13 UTC) #31
Mike Lerman
profiles LGTM
3 years, 9 months ago (2017-03-02 14:37:09 UTC) #34
Ken Rockot(use gerrit already)
lgtm
3 years, 9 months ago (2017-03-02 21:54:14 UTC) #35
Bernhard Bauer
prefs LGTM. +gab FYI https://codereview.chromium.org/2719833002/diff/140001/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc File chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc (right): https://codereview.chromium.org/2719833002/diff/140001/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc#newcode374 chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc:374: return std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate>(); I think you ...
3 years, 9 months ago (2017-03-03 12:12:12 UTC) #36
mattm
lgtm stamp
3 years, 9 months ago (2017-03-04 03:02:03 UTC) #37
Sam McNally
dcheng: ping
3 years, 9 months ago (2017-03-07 01:55:32 UTC) #42
dcheng
mojo lgtm I assume all the direct calls will be passing around interface pointers at ...
3 years, 9 months ago (2017-03-07 08:14:16 UTC) #43
Sam McNally
https://codereview.chromium.org/2719833002/diff/160001/chrome/browser/prefs/profile_pref_store_manager_unittest.cc File chrome/browser/prefs/profile_pref_store_manager_unittest.cc (right): https://codereview.chromium.org/2719833002/diff/160001/chrome/browser/prefs/profile_pref_store_manager_unittest.cc#newcode174 chrome/browser/prefs/profile_pref_store_manager_unittest.cc:174: mock_validation_delegate = base::MakeUnique<MockValidationDelegate>( On 2017/03/07 08:14:15, dcheng wrote: > ...
3 years, 9 months ago (2017-03-08 00:06:53 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2719833002/200001
3 years, 9 months ago (2017-03-08 00:18:40 UTC) #49
dcheng
https://codereview.chromium.org/2719833002/diff/160001/services/preferences/public/cpp/tracked_preference_validation_delegate_struct_traits.cc File services/preferences/public/cpp/tracked_preference_validation_delegate_struct_traits.cc (right): https://codereview.chromium.org/2719833002/diff/160001/services/preferences/public/cpp/tracked_preference_validation_delegate_struct_traits.cc#newcode66 services/preferences/public/cpp/tracked_preference_validation_delegate_struct_traits.cc:66: return false; On 2017/03/08 00:06:53, Sam McNally wrote: > ...
3 years, 9 months ago (2017-03-08 00:22:08 UTC) #50
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 02:07:41 UTC) #53
Message was sent while issue was closed.
Committed patchset #6 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/2c885e024b61f6f0bf1cb7b5624b...

Powered by Google App Engine
This is Rietveld 408576698