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

Issue 318143003: Make CUS interface more resilient by returning a copy of the data (Closed)

Created:
6 years, 6 months ago by Sorin Jianu
Modified:
6 years, 6 months ago
CC:
chromium-reviews, cpu_(ooo_6.6-7.5)
Visibility:
Public.

Description

Make CUS interface more resilient by returning a copy of the data instead of raw pointer. The idea here is to elminate the ambiguity about who owns what and protect about misuse by callers. BUG=381710 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276561

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Changed to use copy and value semantics #

Patch Set 4 : Fixed comment #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -20 lines) Patch
M chrome/browser/component_updater/component_updater_service.h View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/component_updater_service.cc View 1 2 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/components_ui.cc View 1 2 3 4 1 chunk +5 lines, -10 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
waffles
lgtm; please try it and stuff of course
6 years, 6 months ago (2014-06-07 00:26:09 UTC) #1
Sorin Jianu
Carlos?
6 years, 6 months ago (2014-06-07 05:28:53 UTC) #2
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/318143003/diff/20001/chrome/browser/component_updater/component_updater_service.h File chrome/browser/component_updater/component_updater_service.h (right): https://codereview.chromium.org/318143003/diff/20001/chrome/browser/component_updater/component_updater_service.h#newcode212 chrome/browser/component_updater/component_updater_service.h:212: virtual base::WeakPtr<CrxUpdateItem> GetComponentDetails( This sparked an interesting discussion among ...
6 years, 6 months ago (2014-06-09 23:12:57 UTC) #3
waffles
lgtm
6 years, 6 months ago (2014-06-10 17:14:07 UTC) #4
Sorin Jianu
The CQ bit was checked by sorin@chromium.org
6 years, 6 months ago (2014-06-10 17:18:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sorin@chromium.org/318143003/60001
6 years, 6 months ago (2014-06-10 17:20:44 UTC) #6
cpu_(ooo_6.6-7.5)
lgtm
6 years, 6 months ago (2014-06-10 18:20:24 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 01:15:55 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 01:20:58 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/72861)
6 years, 6 months ago (2014-06-11 01:20:59 UTC) #10
Sorin Jianu
The CQ bit was checked by sorin@chromium.org
6 years, 6 months ago (2014-06-11 02:06:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sorin@chromium.org/318143003/60001
6 years, 6 months ago (2014-06-11 02:08:16 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 07:18:16 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 07:24:50 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/72924)
6 years, 6 months ago (2014-06-11 07:24:51 UTC) #15
Sorin Jianu
James, please, I need an owner review for chrome\browser\ui\webui\components_ui.cc Thank you!
6 years, 6 months ago (2014-06-11 16:10:22 UTC) #16
James Hawkins
https://codereview.chromium.org/318143003/diff/60001/chrome/browser/ui/webui/components_ui.cc File chrome/browser/ui/webui/components_ui.cc (right): https://codereview.chromium.org/318143003/diff/60001/chrome/browser/ui/webui/components_ui.cc#newcode172 chrome/browser/ui/webui/components_ui.cc:172: const bool res = cus->GetComponentDetails(component_ids[j], &item); What does 'res' ...
6 years, 6 months ago (2014-06-11 17:50:39 UTC) #17
Sorin Jianu
Thank you James. Fixed. https://codereview.chromium.org/318143003/diff/60001/chrome/browser/ui/webui/components_ui.cc File chrome/browser/ui/webui/components_ui.cc (right): https://codereview.chromium.org/318143003/diff/60001/chrome/browser/ui/webui/components_ui.cc#newcode172 chrome/browser/ui/webui/components_ui.cc:172: const bool res = cus->GetComponentDetails(component_ids[j], ...
6 years, 6 months ago (2014-06-11 21:39:41 UTC) #18
James Hawkins
lgtm
6 years, 6 months ago (2014-06-11 21:52:19 UTC) #19
Sorin Jianu
The CQ bit was checked by sorin@chromium.org
6 years, 6 months ago (2014-06-11 22:05:07 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sorin@chromium.org/318143003/80001
6 years, 6 months ago (2014-06-11 22:07:10 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 22:59:22 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 23:01:27 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/15750) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/18882)
6 years, 6 months ago (2014-06-11 23:01:28 UTC) #24
Sorin Jianu
The CQ bit was checked by sorin@chromium.org
6 years, 6 months ago (2014-06-11 23:08:47 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sorin@chromium.org/318143003/80001
6 years, 6 months ago (2014-06-11 23:09:40 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 23:15:49 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 23:17:20 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_dbg_simulator/builds/160440) ios_rel_device on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device/builds/149849) ios_rel_device_ninja ...
6 years, 6 months ago (2014-06-11 23:17:21 UTC) #29
Sorin Jianu
The CQ bit was checked by sorin@chromium.org
6 years, 6 months ago (2014-06-11 23:27:14 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sorin@chromium.org/318143003/80001
6 years, 6 months ago (2014-06-11 23:28:55 UTC) #31
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 6 months ago (2014-06-12 00:25:36 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-12 00:27:18 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device/builds/149891) ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/21983) mac_chromium_compile_dbg ...
6 years, 6 months ago (2014-06-12 00:27:19 UTC) #34
Sorin Jianu
The CQ bit was checked by sorin@chromium.org
6 years, 6 months ago (2014-06-12 00:57:40 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sorin@chromium.org/318143003/80001
6 years, 6 months ago (2014-06-12 00:58:41 UTC) #36
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 07:26:05 UTC) #37
Message was sent while issue was closed.
Change committed as 276561

Powered by Google App Engine
This is Rietveld 408576698