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

Issue 1354373002: Cleanup: Pass std::string as const reference from google_apis/ and components/gcm_driver/ (Closed)

Created:
5 years, 3 months ago by ki.stfu
Modified:
5 years, 2 months ago
CC:
chromium-reviews, zea+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 google_apis/ and components/gcm_driver/ Passing std::string by reference can prevent extra copying of object. BUG=367418 TEST= R=rogerta@chromium.org,sdefresne@chromium.org Committed: https://crrev.com/07be839f30d97158b803a2cc6dc6509b06c834e1 Cr-Commit-Position: refs/heads/master@{#351035}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Revert AccountTracker::StopTrackingAccount + add explanation why it wouldn't work #

Total comments: 2

Patch Set 3 : Fix a comment about usage of const reference in AccountTracker::StopTrackingAccount #

Patch Set 4 : Fix gcm::GCMStatsRecorderImpl::RecordCheckinFailure()'s signature #

Patch Set 5 : Rebase against ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -19 lines) Patch
M components/gcm_driver/gcm_stats_recorder_impl.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_stats_recorder_impl.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M google_apis/gaia/account_tracker.h View 1 2 1 chunk +8 lines, -3 lines 0 comments Download
M google_apis/gaia/account_tracker.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M google_apis/gaia/account_tracker_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M google_apis/gaia/oauth2_token_service_test_util.h View 1 chunk +1 line, -1 line 0 comments Download
M google_apis/gaia/oauth2_token_service_test_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M google_apis/gcm/monitoring/fake_gcm_stats_recorder.h View 1 chunk +2 lines, -1 line 0 comments Download
M google_apis/gcm/monitoring/fake_gcm_stats_recorder.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M google_apis/gcm/monitoring/gcm_stats_recorder.h View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 37 (13 generated)
ki.stfu
5 years, 3 months ago (2015-09-20 20:10:04 UTC) #1
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/1354373002/diff/1/google_apis/gaia/account_tracker.cc File google_apis/gaia/account_tracker.cc (right): https://codereview.chromium.org/1354373002/diff/1/google_apis/gaia/account_tracker.cc#newcode218 google_apis/gaia/account_tracker.cc:218: void AccountTracker::StopTrackingAccount(const std::string& account_key) { I don't think this ...
5 years, 3 months ago (2015-09-20 20:40:08 UTC) #2
ki.stfu
https://codereview.chromium.org/1354373002/diff/1/google_apis/gaia/account_tracker.cc File google_apis/gaia/account_tracker.cc (right): https://codereview.chromium.org/1354373002/diff/1/google_apis/gaia/account_tracker.cc#newcode218 google_apis/gaia/account_tracker.cc:218: void AccountTracker::StopTrackingAccount(const std::string& account_key) { On 2015/09/20 20:40:08, Roger ...
5 years, 3 months ago (2015-09-21 06:15:40 UTC) #3
Roger Tawa OOO till Jul 10th
On 2015/09/21 06:15:40, ki.stfu wrote: > https://codereview.chromium.org/1354373002/diff/1/google_apis/gaia/account_tracker.cc > File google_apis/gaia/account_tracker.cc (right): > > https://codereview.chromium.org/1354373002/diff/1/google_apis/gaia/account_tracker.cc#newcode218 > ...
5 years, 3 months ago (2015-09-21 16:29:19 UTC) #4
ki.stfu
On 2015/09/21 16:29:19, Roger Tawa wrote: > On 2015/09/21 06:15:40, ki.stfu wrote: > > > ...
5 years, 3 months ago (2015-09-21 17:54:12 UTC) #5
Roger Tawa OOO till Jul 10th
lgtm Sorry, meant to lgtm the previous comment. https://codereview.chromium.org/1354373002/diff/20001/google_apis/gaia/account_tracker.h File google_apis/gaia/account_tracker.h (right): https://codereview.chromium.org/1354373002/diff/20001/google_apis/gaia/account_tracker.h#newcode105 google_apis/gaia/account_tracker.h:105: // ...
5 years, 3 months ago (2015-09-21 20:47:40 UTC) #6
ki.stfu
https://codereview.chromium.org/1354373002/diff/20001/google_apis/gaia/account_tracker.h File google_apis/gaia/account_tracker.h (right): https://codereview.chromium.org/1354373002/diff/20001/google_apis/gaia/account_tracker.h#newcode105 google_apis/gaia/account_tracker.h:105: // object is stored in |accounts_| and it will ...
5 years, 3 months ago (2015-09-21 21:34:54 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354373002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354373002/40001
5 years, 3 months ago (2015-09-21 21:37:57 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/57214) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 3 months ago (2015-09-21 21:50:11 UTC) #12
ki.stfu
On 2015/09/21 21:50:11, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 3 months ago (2015-09-21 22:59:21 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354373002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354373002/60001
5 years, 3 months ago (2015-09-24 19:25:19 UTC) #15
commit-bot: I haz the power
Dry run: 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/57289)
5 years, 3 months ago (2015-09-24 20:15:34 UTC) #17
ki.stfu
On 2015/09/24 20:15:34, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
5 years, 2 months ago (2015-09-27 06:17:11 UTC) #18
ki.stfu
On 2015/09/24 20:15:34, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
5 years, 2 months ago (2015-09-27 06:17:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354373002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354373002/60001
5 years, 2 months ago (2015-09-27 06:17:42 UTC) #22
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/104123)
5 years, 2 months ago (2015-09-27 06:24:28 UTC) #24
ki.stfu
sdefresne@: please review components/gcm_driver/gcm_stats_recorder_impl.[cc|h]
5 years, 2 months ago (2015-09-27 08:42:59 UTC) #26
ki.stfu
I see a few failures on linux/mac buildbots, but it works for me on Linux: ...
5 years, 2 months ago (2015-09-27 08:59:55 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354373002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354373002/80001
5 years, 2 months ago (2015-09-27 19:56:55 UTC) #30
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/104144)
5 years, 2 months ago (2015-09-27 20:05:22 UTC) #32
sdefresne
components/gcm_driver lgtm
5 years, 2 months ago (2015-09-28 07:29:54 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1354373002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1354373002/80001
5 years, 2 months ago (2015-09-28 07:52:10 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 2 months ago (2015-09-28 08:25:52 UTC) #36
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 08:26:38 UTC) #37
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/07be839f30d97158b803a2cc6dc6509b06c834e1
Cr-Commit-Position: refs/heads/master@{#351035}

Powered by Google App Engine
This is Rietveld 408576698