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

Issue 18337010: Avoid std::string copying in GetFileNameInWhitelist. (Closed)

Created:
7 years, 5 months ago by Jorge Lucangeli Obes
Modified:
7 years, 5 months ago
CC:
chromium-reviews, agl, jln+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Avoid std::string copying in GetFileNameInWhitelist. BUG=256452 TEST=sandbox_linux_unittests passes. TEST=about:gpu shows "Sandboxed: true", browser works. NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210651

Patch Set 1 #

Total comments: 21

Patch Set 2 : Address most reviewer comments, missing unit tests and comments. #

Patch Set 3 : Use libc's strcmp(3). #

Total comments: 2

Patch Set 4 : Make the loop saner. #

Patch Set 5 : Small whitespace consistency fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M sandbox/linux/services/broker_process.cc View 1 2 3 4 3 chunks +12 lines, -7 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Jorge Lucangeli Obes
Not sure whether using vector::iterator directly is enough, but this should get rid of all ...
7 years, 5 months ago (2013-07-08 21:25:57 UTC) #1
jln (very slow on Chromium)
Let's just do the strcmp (with unit tests) here ? Find should be done inline ...
7 years, 5 months ago (2013-07-08 22:36:51 UTC) #2
jln (very slow on Chromium)
Thinking about ways to simplify this CL: it probably doesn't make sense for now to ...
7 years, 5 months ago (2013-07-09 01:53:39 UTC) #3
Jorge Lucangeli Obes
This has replies from comments in PS1 but I'll reupload with libc's strcmp to unblock ...
7 years, 5 months ago (2013-07-09 03:52:12 UTC) #4
Jorge Lucangeli Obes
Updated and greatly simplified, PTAL.
7 years, 5 months ago (2013-07-09 04:08:55 UTC) #5
jln (very slow on Chromium)
lgtm with mandatory nit. (If I'm around, feel free to let me take another quick ...
7 years, 5 months ago (2013-07-09 05:36:39 UTC) #6
Jorge Lucangeli Obes
https://chromiumcodereview.appspot.com/18337010/diff/8002/sandbox/linux/services/broker_process.cc File sandbox/linux/services/broker_process.cc (right): https://chromiumcodereview.appspot.com/18337010/diff/8002/sandbox/linux/services/broker_process.cc#newcode72 sandbox/linux/services/broker_process.cc:72: if (strcmp(requested_filename, it->c_str()) == 0) On 2013/07/09 05:36:40, Julien ...
7 years, 5 months ago (2013-07-09 15:56:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jorgelo@chromium.org/18337010/23001
7 years, 5 months ago (2013-07-09 18:38:41 UTC) #8
commit-bot: I haz the power
7 years, 5 months ago (2013-07-09 21:47:30 UTC) #9
Message was sent while issue was closed.
Change committed as 210651

Powered by Google App Engine
This is Rietveld 408576698