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

Issue 2873533002: Prepare to abstract PersistedData by making it part of the configurator.

Created:
3 years, 7 months ago by Minh X. Nguyen
Modified:
3 years, 6 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, cbentzel
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Prepare to abstract PersistedData by making it part of the configurator. The next step is to make PersistedData an abstract class so that UpdateClient can support globally persisted data and specific user profile data. BUG=722942

Patch Set 1 #

Patch Set 2 : Correct the order of initialization in TestConfigurator constructor to avoid warnings. #

Patch Set 3 : Fix a compile error in iOS. #

Patch Set 4 : Really fix a compile error in iOS component configurator this time. #

Total comments: 4

Patch Set 5 : Merge remote-tracking branch 'origin/master' into updater #

Patch Set 6 : Reformat the code. #

Total comments: 1

Patch Set 7 : Fix a compiler error (std::move is not needed). #

Patch Set 8 : Fix ios compile error. #

Total comments: 6

Patch Set 9 : Remove GetPrefService() from configurator interface as it's not used directly anymore. #

Patch Set 10 : Replace MakeShared with MakeRefCounted. #

Total comments: 2

Patch Set 11 : Rename pref_ to pref_service_. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -34 lines) Patch
M chrome/browser/component_updater/chrome_component_updater_configurator.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/extensions/updater/chrome_update_client_config.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/updater/chrome_update_client_config.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -5 lines 0 comments Download
M components/update_client/configurator.h View 1 2 3 4 5 6 7 8 2 chunks +8 lines, -8 lines 0 comments Download
M components/update_client/test_configurator.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -1 line 0 comments Download
M components/update_client/test_configurator.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -5 lines 0 comments Download
M components/update_client/update_checker_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M components/update_client/update_engine.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/component_updater/ios_component_updater_configurator.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -6 lines 0 comments Download

Messages

Total messages: 93 (72 generated)
Minh X. Nguyen
This is the first step, I break it down into 2 patches so that it's ...
3 years, 7 months ago (2017-05-09 17:54:26 UTC) #21
waffles
https://codereview.chromium.org/2873533002/diff/60001/chrome/browser/extensions/updater/chrome_update_client_config.h File chrome/browser/extensions/updater/chrome_update_client_config.h (right): https://codereview.chromium.org/2873533002/diff/60001/chrome/browser/extensions/updater/chrome_update_client_config.h#newcode49 chrome/browser/extensions/updater/chrome_update_client_config.h:49: update_client::PersistedData* CreateMetadata() const override; Can we return a unique_ptr ...
3 years, 7 months ago (2017-05-12 17:33:34 UTC) #28
Sorin Jianu
I will take a look after the current set of comments is addressed. Thank you!
3 years, 7 months ago (2017-05-12 18:17:22 UTC) #29
Minh X. Nguyen
https://codereview.chromium.org/2873533002/diff/60001/chrome/browser/extensions/updater/chrome_update_client_config.h File chrome/browser/extensions/updater/chrome_update_client_config.h (right): https://codereview.chromium.org/2873533002/diff/60001/chrome/browser/extensions/updater/chrome_update_client_config.h#newcode49 chrome/browser/extensions/updater/chrome_update_client_config.h:49: update_client::PersistedData* CreateMetadata() const override; On 2017/05/12 17:33:34, waffles wrote: ...
3 years, 7 months ago (2017-05-14 23:57:22 UTC) #36
waffles
lgtm https://codereview.chromium.org/2873533002/diff/100001/components/update_client/update_engine.cc File components/update_client/update_engine.cc (right): https://codereview.chromium.org/2873533002/diff/100001/components/update_client/update_engine.cc#newcode61 components/update_client/update_engine.cc:61: metadata_(std::move(config->CreateMetadata())), remove std::move. (moving a temporary object prevents ...
3 years, 7 months ago (2017-05-15 17:52:20 UTC) #39
Sorin Jianu
lgtm Thank you!
3 years, 7 months ago (2017-05-15 22:19:56 UTC) #50
Sorin Jianu
lgtm Thank you!
3 years, 7 months ago (2017-05-15 22:19:58 UTC) #51
Minh X. Nguyen
3 years, 7 months ago (2017-05-15 23:10:57 UTC) #52
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/2873533002/140001
3 years, 7 months ago (2017-05-16 00:01:46 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/437658)
3 years, 7 months ago (2017-05-16 00:20:08 UTC) #59
Minh X. Nguyen
3 years, 7 months ago (2017-05-16 02:03:48 UTC) #61
cbentzel
Was there a specific reason I was added as a reviewer on this CL? Not ...
3 years, 7 months ago (2017-05-16 18:13:18 UTC) #62
mxnguyen
On 2017/05/16 18:13:18, cbentzel wrote: > Was there a specific reason I was added as ...
3 years, 7 months ago (2017-05-16 18:18:02 UTC) #63
Sorin Jianu
Sylvain, could you please review and approve the changes under the ios path? thank you! ...
3 years, 7 months ago (2017-05-16 18:43:55 UTC) #67
Devlin
https://codereview.chromium.org/2873533002/diff/140001/chrome/browser/extensions/updater/chrome_update_client_config.cc File chrome/browser/extensions/updater/chrome_update_client_config.cc (right): https://codereview.chromium.org/2873533002/diff/140001/chrome/browser/extensions/updater/chrome_update_client_config.cc#newcode5 chrome/browser/extensions/updater/chrome_update_client_config.cc:5: #include "chrome/browser/extensions/updater/chrome_update_client_config.h" I think git cl format messed this ...
3 years, 7 months ago (2017-05-16 23:03:09 UTC) #68
sdefresne
ios/ lgtm
3 years, 7 months ago (2017-05-17 09:57:39 UTC) #69
Minh X. Nguyen
Sorry for the late response, I was OOO for the last 2 weeks. https://codereview.chromium.org/2873533002/diff/140001/chrome/browser/extensions/updater/chrome_update_client_config.cc File ...
3 years, 6 months ago (2017-06-01 21:04:19 UTC) #80
Devlin
lgtm! https://codereview.chromium.org/2873533002/diff/180001/components/update_client/test_configurator.h File components/update_client/test_configurator.h (right): https://codereview.chromium.org/2873533002/diff/180001/components/update_client/test_configurator.h#newcode113 components/update_client/test_configurator.h:113: PrefService* pref_; nit: maybe s/pref_/pref_service_? A pref is ...
3 years, 6 months ago (2017-06-05 16:13:38 UTC) #83
Minh X. Nguyen
https://codereview.chromium.org/2873533002/diff/180001/components/update_client/test_configurator.h File components/update_client/test_configurator.h (right): https://codereview.chromium.org/2873533002/diff/180001/components/update_client/test_configurator.h#newcode113 components/update_client/test_configurator.h:113: PrefService* pref_; On 2017/06/05 16:13:38, Devlin wrote: > nit: ...
3 years, 6 months ago (2017-06-05 18:16:38 UTC) #85
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/2873533002/200001
3 years, 6 months ago (2017-06-05 19:46:35 UTC) #91
sdefresne
3 years, 6 months ago (2017-06-15 13:29:03 UTC) #93
mxnguyen: ping?

Powered by Google App Engine
This is Rietveld 408576698