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

Issue 1579583004: shell_util: Use std::move instead of Pass. (Closed)

Created:
4 years, 11 months ago by Matt Giuca
Modified:
4 years, 11 months ago
Reviewers:
gab, Nico
CC:
chromium-reviews, grt+watch_chromium.org, wfh+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

shell_util: Use std::move instead of Pass. I want to move this code but a presubmit won't let me land code that uses Pass. Committed: https://crrev.com/ad4f1d7afb494269fe4ea2aa602c7447d4ca40f8 Cr-Commit-Position: refs/heads/master@{#368987}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M chrome/installer/util/shell_util.cc View 2 chunks +2 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (6 generated)
Matt Giuca
Tiny precursor to https://codereview.chromium.org/1578833003/.
4 years, 11 months ago (2016-01-12 03:22:33 UTC) #2
gab
lgtm
4 years, 11 months ago (2016-01-12 20:03:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1579583004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1579583004/1
4 years, 11 months ago (2016-01-12 20:05:25 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-12 21:19:03 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/ad4f1d7afb494269fe4ea2aa602c7447d4ca40f8 Cr-Commit-Position: refs/heads/master@{#368987}
4 years, 11 months ago (2016-01-12 21:20:37 UTC) #10
Nico
4 years, 11 months ago (2016-01-13 15:22:42 UTC) #12
Message was sent while issue was closed.
immediate pay-off: the compiler can now reason about this.

FAILED: ninja -t msvc -e environment.x86 --
"..\..\third_party/llvm-build/Release+Asserts/bin/clang-cl" -m32 /nologo
/showIncludes /FC @obj\chrome\installer\util\installer_util.shell_util.obj.rsp
/c ..\..\chrome\installer\util\shell_util.cc
/Foobj\chrome\installer\util\installer_util.shell_util.obj
/Fdobj\chrome\installer_util.cc.pdb 
..\..\chrome\installer\util\shell_util.cc(277,10) :  error: moving a local
object in a return statement prevents copy elision [-Werror,-Wpessimizing-move]
  return std::move(entries);
         ^
..\..\chrome\installer\util\shell_util.cc(277,10) :  note: remove std::move call
here
  return std::move(entries);
         ^~~~~~~~~~       ~
1 error generated.

I'll send you a CL.

Powered by Google App Engine
This is Rietveld 408576698