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

Issue 148463003: libaddressinput - reduce number of copies in storage class by 2 (Closed)

Created:
6 years, 11 months ago by Evan Stade
Modified:
6 years, 10 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, Nico
Visibility:
Public.

Description

libaddressinput - reduce number of copies in storage class by 2 1. on the way in (Put) 2. on the way out (Get) BUG=337679 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249102

Patch Set 1 #

Total comments: 5

Patch Set 2 : HeapStringValue #

Patch Set 3 : plus unit tests #

Patch Set 4 : swap() instead #

Patch Set 5 : comment #

Total comments: 1

Patch Set 6 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -21 lines) Patch
M base/values.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M base/values.cc View 1 2 3 4 5 3 chunks +18 lines, -0 lines 0 comments Download
M third_party/libaddressinput/chromium/chrome_storage_impl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/libaddressinput/chromium/chrome_storage_impl.cc View 1 2 3 2 chunks +9 lines, -5 lines 0 comments Download
M third_party/libaddressinput/chromium/cpp/include/libaddressinput/storage.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libaddressinput/chromium/cpp/src/retriever.cc View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/libaddressinput/chromium/cpp/test/fake_storage.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/libaddressinput/chromium/cpp/test/fake_storage.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/libaddressinput/chromium/cpp/test/retriever_test.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M third_party/libaddressinput/chromium/cpp/test/storage_test_runner.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Evan Stade
+dbeam for libaddressinput +thakis for base/values.*
6 years, 11 months ago (2014-01-27 17:32:40 UTC) #1
Nico
s/me/brettw/ for base/values.*
6 years, 11 months ago (2014-01-27 17:35:42 UTC) #2
brettw
https://chromiumcodereview.appspot.com/148463003/diff/1/base/values.h File base/values.h (right): https://chromiumcodereview.appspot.com/148463003/diff/1/base/values.h#newcode94 base/values.h:94: virtual bool GetAsStringValue(const StringValue** out_value) const; This new name ...
6 years, 11 months ago (2014-01-28 03:00:23 UTC) #3
Evan Stade
https://codereview.chromium.org/148463003/diff/1/base/values.h File base/values.h (right): https://codereview.chromium.org/148463003/diff/1/base/values.h#newcode171 base/values.h:171: scoped_ptr<std::string> value_; On 2014/01/28 03:00:24, brettw wrote: > I ...
6 years, 10 months ago (2014-01-28 18:37:36 UTC) #4
Evan Stade
https://codereview.chromium.org/148463003/diff/1/base/values.h File base/values.h (right): https://codereview.chromium.org/148463003/diff/1/base/values.h#newcode171 base/values.h:171: scoped_ptr<std::string> value_; On 2014/01/28 18:37:36, Evan Stade wrote: > ...
6 years, 10 months ago (2014-01-28 18:43:35 UTC) #5
Evan Stade
https://chromiumcodereview.appspot.com/148463003/diff/1/base/values.h File base/values.h (right): https://chromiumcodereview.appspot.com/148463003/diff/1/base/values.h#newcode171 base/values.h:171: scoped_ptr<std::string> value_; On 2014/01/28 18:43:35, Evan Stade wrote: > ...
6 years, 10 months ago (2014-01-28 18:48:45 UTC) #6
brettw
> Well, even in lieu of that other optimization, I still think the one in ...
6 years, 10 months ago (2014-01-29 01:07:42 UTC) #7
Evan Stade
On 2014/01/29 01:07:42, brettw wrote: > > Well, even in lieu of that other optimization, ...
6 years, 10 months ago (2014-01-29 01:17:10 UTC) #8
brettw
What about adding const and non-const std::string& value() accessors to the StringValue class. Then you ...
6 years, 10 months ago (2014-01-29 02:26:58 UTC) #9
brettw
On 2014/01/29 01:07:42, brettw wrote: > > Well, even in lieu of that other optimization, ...
6 years, 10 months ago (2014-01-29 02:30:14 UTC) #10
Evan Stade
On 2014/01/29 02:26:58, brettw wrote: > What about adding const and non-const std::string& value() accessors ...
6 years, 10 months ago (2014-01-29 02:35:05 UTC) #11
Evan Stade
updated, ptal
6 years, 10 months ago (2014-01-30 01:17:08 UTC) #12
Dan Beam
lgtm https://codereview.chromium.org/148463003/diff/310001/base/values.h File base/values.h (right): https://codereview.chromium.org/148463003/diff/310001/base/values.h#newcode158 base/values.h:158: // Returns a reference to |value_|. ^ needs ...
6 years, 10 months ago (2014-01-30 03:57:58 UTC) #13
Evan Stade
ping brettw
6 years, 10 months ago (2014-01-31 04:16:58 UTC) #14
Evan Stade
ping brettw
6 years, 10 months ago (2014-02-03 23:28:06 UTC) #15
brettw
base LGTM with Dan's comment fixed. Sorry for the delay, was on vacation.
6 years, 10 months ago (2014-02-04 04:00:22 UTC) #16
Evan Stade
thanks Brett. Welcome back.
6 years, 10 months ago (2014-02-04 18:20:46 UTC) #17
Evan Stade
The CQ bit was checked by estade@chromium.org
6 years, 10 months ago (2014-02-04 18:20:56 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/148463003/350001
6 years, 10 months ago (2014-02-04 18:25:39 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=223520
6 years, 10 months ago (2014-02-04 19:36:45 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/148463003/350001
6 years, 10 months ago (2014-02-04 19:40:18 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/148463003/350001
6 years, 10 months ago (2014-02-05 00:41:14 UTC) #22
Paweł Hajdan Jr.
The CQ bit was unchecked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-05 18:51:14 UTC) #23
Paweł Hajdan Jr.
The CQ bit was checked by phajdan.jr@chromium.org
6 years, 10 months ago (2014-02-05 19:16:32 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/148463003/350001
6 years, 10 months ago (2014-02-05 19:23:13 UTC) #25
commit-bot: I haz the power
6 years, 10 months ago (2014-02-05 20:42:18 UTC) #26
Message was sent while issue was closed.
Change committed as 249102

Powered by Google App Engine
This is Rietveld 408576698