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

Issue 1353323002: Cleanup: Pass std::string as const reference from chromeos/ (Closed)

Created:
5 years, 3 months ago by ki.stfu
Modified:
5 years, 3 months ago
CC:
chromium-reviews, tfarina, hashimoto+watch_chromium.org, oshima+watch_chromium.org
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 chromeos/ Passing std::string by reference can prevent extra copying of object. BUG=367418 TEST= R=zelidrag@chromium.org,derat@chromium.org,gauravsh@chromium.org Committed: https://crrev.com/d3709b5f91fe5d0d4accd7386da5a61743824b9e Cr-Commit-Position: refs/heads/master@{#350078}

Patch Set 1 #

Patch Set 2 : Fix FakeShillManagerClient::SetInitialNetworkState #

Total comments: 8

Patch Set 3 : Don't use const reference for |type_arg| in FakeShillManagerClient::SetInitialNetworkState #

Patch Set 4 : Don't use const& for NetworkConnectionHandler::CheckPendingRequest; Use one more const& in unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -13 lines) Patch
M chromeos/audio/audio_devices_pref_handler_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chromeos/audio/audio_devices_pref_handler_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chromeos/dbus/fake_shill_manager_client.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/dbus/fake_shill_manager_client.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chromeos/network/network_connection_handler.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer_impl_unittest.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chromeos/network/shill_property_util.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/shill_property_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/tools/onc_validator/onc_validator.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (10 generated)
ki.stfu
5 years, 3 months ago (2015-09-20 20:04:42 UTC) #1
Daniel Erat
thanks! please also add your name and email address to the top-level AUTHORS file in ...
5 years, 3 months ago (2015-09-21 14:06:52 UTC) #3
ki.stfu
On 2015/09/21 14:06:52, Daniel Erat wrote: > thanks! please also add your name and email ...
5 years, 3 months ago (2015-09-21 14:32:19 UTC) #4
Daniel Erat
lgtm ah, thanks! sorry, i was looking at a stale checkout.
5 years, 3 months ago (2015-09-21 14:49:50 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353323002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353323002/1
5 years, 3 months ago (2015-09-21 14:50:34 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/102005)
5 years, 3 months ago (2015-09-21 14:58:39 UTC) #9
Daniel Erat
ah, chromeos/network/OWNERS has "set noparent". i'll wait for gaurav.
5 years, 3 months ago (2015-09-21 15:14:37 UTC) #10
gauravsh
lgtm I probably shouldn't be in chromeos/network/OWNERS any more.
5 years, 3 months ago (2015-09-21 16:38:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353323002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353323002/1
5 years, 3 months ago (2015-09-21 16:40:48 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/34777) linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 3 months ago (2015-09-21 17:00:22 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/1353323002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353323002/20001
5 years, 3 months ago (2015-09-21 20:36:23 UTC) #17
ki.stfu
@derat: Please review PS2.
5 years, 3 months ago (2015-09-21 21:01:45 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-21 21:07:11 UTC) #20
Daniel Erat
steven should be reviewing this. https://codereview.chromium.org/1353323002/diff/20001/chromeos/dbus/fake_shill_manager_client.cc File chromeos/dbus/fake_shill_manager_client.cc (right): https://codereview.chromium.org/1353323002/diff/20001/chromeos/dbus/fake_shill_manager_client.cc#newcode1172 chromeos/dbus/fake_shill_manager_client.cc:1172: type_arg != "eth" && ...
5 years, 3 months ago (2015-09-21 21:47:05 UTC) #22
ki.stfu
Review again please. https://codereview.chromium.org/1353323002/diff/20001/chromeos/dbus/fake_shill_manager_client.cc File chromeos/dbus/fake_shill_manager_client.cc (right): https://codereview.chromium.org/1353323002/diff/20001/chromeos/dbus/fake_shill_manager_client.cc#newcode1172 chromeos/dbus/fake_shill_manager_client.cc:1172: type_arg != "eth" && // synonym ...
5 years, 3 months ago (2015-09-21 22:20:41 UTC) #23
stevenjb
NOT LGTM https://codereview.chromium.org/1353323002/diff/20001/chromeos/dbus/fake_shill_manager_client.cc File chromeos/dbus/fake_shill_manager_client.cc (right): https://codereview.chromium.org/1353323002/diff/20001/chromeos/dbus/fake_shill_manager_client.cc#newcode1182 chromeos/dbus/fake_shill_manager_client.cc:1182: if (type_arg == shill::kTypeEthernet && state == ...
5 years, 3 months ago (2015-09-21 22:23:39 UTC) #24
ki.stfu
https://codereview.chromium.org/1353323002/diff/20001/chromeos/dbus/fake_shill_manager_client.cc File chromeos/dbus/fake_shill_manager_client.cc (right): https://codereview.chromium.org/1353323002/diff/20001/chromeos/dbus/fake_shill_manager_client.cc#newcode1182 chromeos/dbus/fake_shill_manager_client.cc:1182: if (type_arg == shill::kTypeEthernet && state == kNetworkDisabled) On ...
5 years, 3 months ago (2015-09-21 22:55:58 UTC) #25
stevenjb
lgtm
5 years, 3 months ago (2015-09-21 22:57:49 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1353323002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1353323002/60001
5 years, 3 months ago (2015-09-21 23:03:04 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-09-22 00:56:59 UTC) #30
commit-bot: I haz the power
5 years, 3 months ago (2015-09-22 00:57:32 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d3709b5f91fe5d0d4accd7386da5a61743824b9e
Cr-Commit-Position: refs/heads/master@{#350078}

Powered by Google App Engine
This is Rietveld 408576698