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

Issue 1772683002: FeatureProvider returns std::map instead of vector (Closed)

Created:
4 years, 9 months ago by limasdf
Modified:
4 years, 9 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_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

FeatureProvider returns std::map instead of vector To reduce binding time as much as possible, use std::map(O(1)) instead of std::vector(O(n)). Also, use 'const_iterator' to fix improper usage of 'auto'. BUG=592537 TEST=Every tests are green. Committed: https://crrev.com/8477b57a78fa0faf4b0e65c3aaf6cd6f205fee28 Cr-Commit-Position: refs/heads/master@{#379711}

Patch Set 1 : #

Patch Set 2 : use const_iterator instead of auto #

Total comments: 2

Patch Set 3 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -44 lines) Patch
M extensions/common/features/base_feature_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/features/base_feature_provider.cc View 1 2 chunks +8 lines, -13 lines 0 comments Download
M extensions/common/features/feature_provider.h View 2 chunks +7 lines, -2 lines 0 comments Download
M extensions/common/manifest.cc View 1 2 1 chunk +4 lines, -9 lines 0 comments Download
M extensions/renderer/api_definitions_natives.cc View 1 2 1 chunk +4 lines, -8 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 1 chunk +6 lines, -11 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
limasdf
When you have time. Will this be acceptable? This is not a huge improvement. however, ...
4 years, 9 months ago (2016-03-07 16:27:31 UTC) #6
Devlin
lgtm, nice change! https://codereview.chromium.org/1772683002/diff/60001/extensions/common/manifest.cc File extensions/common/manifest.cc (right): https://codereview.chromium.org/1772683002/diff/60001/extensions/common/manifest.cc#newcode149 extensions/common/manifest.cc:149: for (const auto& feature : manifest_feature_provider->GetAllFeatures()) ...
4 years, 9 months ago (2016-03-07 17:35:32 UTC) #7
limasdf
Thanks for the review. https://codereview.chromium.org/1772683002/diff/60001/extensions/common/manifest.cc File extensions/common/manifest.cc (right): https://codereview.chromium.org/1772683002/diff/60001/extensions/common/manifest.cc#newcode149 extensions/common/manifest.cc:149: for (const auto& feature : ...
4 years, 9 months ago (2016-03-08 01:18:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1772683002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1772683002/80001
4 years, 9 months ago (2016-03-08 01:18:58 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/34717)
4 years, 9 months ago (2016-03-08 01:53:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1772683002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1772683002/80001
4 years, 9 months ago (2016-03-08 02:58:18 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:80001)
4 years, 9 months ago (2016-03-08 03:04:23 UTC) #18
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 03:06:10 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8477b57a78fa0faf4b0e65c3aaf6cd6f205fee28
Cr-Commit-Position: refs/heads/master@{#379711}

Powered by Google App Engine
This is Rietveld 408576698