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

Issue 1352613004: Cleanup: Pass std::string as const reference from ash/ + minor coding style changes in base/ (Closed)

Created:
5 years, 3 months ago by ki.stfu
Modified:
5 years, 3 months ago
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup: Pass std::string as const reference from ash/ + minor coding style changes in base/ Passing std::string by reference can prevent extra copying of object. BUG=367418 TEST= R=derat@chromium.org,sky@chromium.org,mark@chromium.org,stevenjb@chromium.org Committed: https://crrev.com/b6cbc047deeaf616ec2181f270fff6eaf0eb3443 Cr-Commit-Position: refs/heads/master@{#350593}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Allocate |device_id| on the stack #

Total comments: 2

Patch Set 3 : Remove const qualifier for int in function arguments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -5 lines) Patch
M ash/system/bluetooth/tray_bluetooth.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M ash/test/test_session_state_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/test/test_session_state_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/logging.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (10 generated)
ki.stfu
5 years, 3 months ago (2015-09-20 19:54:57 UTC) #1
ki.stfu
5 years, 3 months ago (2015-09-20 20:21:06 UTC) #2
Mark Mentovai
The change in base is a no-op and doesn’t have anything to do with the ...
5 years, 3 months ago (2015-09-21 00:22:30 UTC) #3
ki.stfu
On 2015/09/21 00:22:30, Mark Mentovai - August is over wrote: > The change in base ...
5 years, 3 months ago (2015-09-21 05:17:48 UTC) #4
Daniel Erat
please add the most-specific owners that you can. in the case of ash/system/OWNERS, this would ...
5 years, 3 months ago (2015-09-21 14:12:45 UTC) #5
ki.stfu
On 2015/09/21 23:06:46, ki.stfu wrote: > mailto:ki.stfu@gmail.com changed reviewers: > + mailto:stevenjb@chromium.org stevenjb@: added as ...
5 years, 3 months ago (2015-09-21 23:08:56 UTC) #7
stevenjb
https://codereview.chromium.org/1352613004/diff/1/ash/system/bluetooth/tray_bluetooth.cc File ash/system/bluetooth/tray_bluetooth.cc (right): https://codereview.chromium.org/1352613004/diff/1/ash/system/bluetooth/tray_bluetooth.cc#newcode378 ash/system/bluetooth/tray_bluetooth.cc:378: const std::string& device_id = find->second; On 2015/09/21 14:12:45, Daniel ...
5 years, 3 months ago (2015-09-22 01:16:11 UTC) #8
ki.stfu
https://codereview.chromium.org/1352613004/diff/1/ash/system/bluetooth/tray_bluetooth.cc File ash/system/bluetooth/tray_bluetooth.cc (right): https://codereview.chromium.org/1352613004/diff/1/ash/system/bluetooth/tray_bluetooth.cc#newcode378 ash/system/bluetooth/tray_bluetooth.cc:378: const std::string& device_id = find->second; On 2015/09/21 14:12:45, Daniel ...
5 years, 3 months ago (2015-09-23 17:36:05 UTC) #9
stevenjb
lgtm
5 years, 3 months ago (2015-09-23 17:39:19 UTC) #10
Mark Mentovai
LGTM in base, on the basis of this matching the prevailing style in this file ...
5 years, 3 months ago (2015-09-23 17:40:38 UTC) #11
Daniel Erat
lgtm too https://codereview.chromium.org/1352613004/diff/20001/base/logging.h File base/logging.h (right): https://codereview.chromium.org/1352613004/diff/20001/base/logging.h#newcode809 base/logging.h:809: inline void LogAtLevel(const int log_level, const std::string& ...
5 years, 3 months ago (2015-09-23 19:20:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352613004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352613004/20001
5 years, 3 months ago (2015-09-23 19:21:41 UTC) #14
ki.stfu
https://codereview.chromium.org/1352613004/diff/20001/base/logging.h File base/logging.h (right): https://codereview.chromium.org/1352613004/diff/20001/base/logging.h#newcode809 base/logging.h:809: inline void LogAtLevel(const int log_level, const std::string& msg) { ...
5 years, 3 months ago (2015-09-23 19:48:00 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352613004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352613004/20001
5 years, 3 months ago (2015-09-23 19:55:49 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352613004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352613004/40001
5 years, 3 months ago (2015-09-23 20:43:50 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/56671) linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 3 months ago (2015-09-23 21:20:35 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352613004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352613004/40001
5 years, 3 months ago (2015-09-24 04:52:16 UTC) #25
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-24 07:28:25 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1352613004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1352613004/40001
5 years, 3 months ago (2015-09-24 17:11:59 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 3 months ago (2015-09-24 17:30:20 UTC) #30
commit-bot: I haz the power
5 years, 3 months ago (2015-09-24 17:31:10 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b6cbc047deeaf616ec2181f270fff6eaf0eb3443
Cr-Commit-Position: refs/heads/master@{#350593}

Powered by Google App Engine
This is Rietveld 408576698