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

Issue 1511103003: Use rvalue reference instead of ExtensionBuilder::pass() (Closed)

Created:
5 years ago by limasdf
Modified:
5 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, media-router+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use rvalue reference instead of ExtensionBuilder::pass() C++ 11 enables rvalue reference with std::move() so that removing legacy ListBuilder::Pass(). BUG=563649 TBR=thankis@chromium.org Committed: https://crrev.com/704a902182dd1ba3b315563a6a65a7eb107ece79 Cr-Commit-Position: refs/heads/master@{#365969}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : feedback of review and rebase #

Patch Set 3 : #

Total comments: 5

Patch Set 4 : review (returning rvalue) #

Total comments: 3

Patch Set 5 : nit change(dana review) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -26 lines) Patch
M chrome/browser/extensions/api/file_system/file_system_api_unittest.cc View 1 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/permission_messages_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/media_router/media_router_ui_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/common_extension_api_unittest.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M extensions/common/extension_builder.h View 1 2 chunks +6 lines, -4 lines 0 comments Download
M extensions/common/extension_builder.cc View 1 2 chunks +18 lines, -0 lines 0 comments Download
M extensions/common/test_util.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M extensions/common/test_util.cc View 1 2 3 4 2 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 34 (20 generated)
limasdf
Dana, Could you take a first look at extensions/common/extension_builder.{h,cc} ? It's pretty similar with previous(extensions::ListBuilder) ...
5 years ago (2015-12-09 15:20:18 UTC) #6
danakj
https://codereview.chromium.org/1511103003/diff/20001/extensions/common/extension_builder.cc File extensions/common/extension_builder.cc (right): https://codereview.chromium.org/1511103003/diff/20001/extensions/common/extension_builder.cc#newcode18 extensions/common/extension_builder.cc:18: : path_(other.path_), move the string instead of copying it? ...
5 years ago (2015-12-09 18:46:44 UTC) #7
limasdf
Dana, Could you share your wisdom? It failed only from Windows. Here's Backtrace on my ...
5 years ago (2015-12-16 09:34:54 UTC) #15
danakj
https://codereview.chromium.org/1511103003/diff/190001/extensions/common/test_util.cc File extensions/common/test_util.cc (right): https://codereview.chromium.org/1511103003/diff/190001/extensions/common/test_util.cc#newcode17 extensions/common/test_util.cc:17: return builder This is now returning a reference to ...
5 years ago (2015-12-16 18:57:49 UTC) #16
danakj
https://codereview.chromium.org/1511103003/diff/190001/extensions/common/test_util.cc File extensions/common/test_util.cc (right): https://codereview.chromium.org/1511103003/diff/190001/extensions/common/test_util.cc#newcode17 extensions/common/test_util.cc:17: return builder On 2015/12/16 18:57:49, danakj (behind on reviews) ...
5 years ago (2015-12-16 19:06:04 UTC) #17
limasdf
adding Antony, the owner of extension. btw, I'm wondering why *only Windows trybot has failed ...
5 years ago (2015-12-17 06:19:46 UTC) #20
asargent_no_longer_on_chrome
lgtm
5 years ago (2015-12-17 22:09:08 UTC) #21
danakj
On Wed, Dec 16, 2015 at 10:19 PM, <limasdf@gmail.com> wrote: > adding Antony, the owner ...
5 years ago (2015-12-17 22:21:19 UTC) #22
danakj
LGTM https://codereview.chromium.org/1511103003/diff/230001/extensions/common/test_util.cc File extensions/common/test_util.cc (right): https://codereview.chromium.org/1511103003/diff/230001/extensions/common/test_util.cc#newcode17 extensions/common/test_util.cc:17: return std::move(builder.SetManifest(DictionaryBuilder() nit: it might be easier to ...
5 years ago (2015-12-17 22:22:02 UTC) #23
limasdf
https://codereview.chromium.org/1511103003/diff/230001/extensions/common/test_util.cc File extensions/common/test_util.cc (right): https://codereview.chromium.org/1511103003/diff/230001/extensions/common/test_util.cc#newcode17 extensions/common/test_util.cc:17: return std::move(builder.SetManifest(DictionaryBuilder() On 2015/12/17 22:22:02, danakj (behind on reviews) ...
5 years ago (2015-12-18 00:31:58 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1511103003/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1511103003/250001
5 years ago (2015-12-18 00:34:13 UTC) #29
danakj
https://codereview.chromium.org/1511103003/diff/230001/extensions/common/test_util.cc File extensions/common/test_util.cc (right): https://codereview.chromium.org/1511103003/diff/230001/extensions/common/test_util.cc#newcode17 extensions/common/test_util.cc:17: return std::move(builder.SetManifest(DictionaryBuilder() On 2015/12/18 00:31:58, limasdf wrote: > On ...
5 years ago (2015-12-18 00:38:49 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:250001)
5 years ago (2015-12-18 01:36:26 UTC) #32
commit-bot: I haz the power
5 years ago (2015-12-18 01:37:27 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/704a902182dd1ba3b315563a6a65a7eb107ece79
Cr-Commit-Position: refs/heads/master@{#365969}

Powered by Google App Engine
This is Rietveld 408576698