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

Issue 439873002: Check for empty paths in path_util (Closed)

Created:
6 years, 4 months ago by gpdavis
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Check for empty paths in path_util BUG=400530 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288187

Patch Set 1 #

Total comments: 2

Patch Set 2 : Tighten #ifdefs #

Total comments: 2

Patch Set 3 : Added tests #

Patch Set 4 : Testing comments #

Total comments: 16

Patch Set 5 : Enhanced test #

Total comments: 8

Patch Set 6 : Minor changes #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -12 lines) Patch
A chrome/browser/extensions/extension_path_util_unittest.cc View 1 2 3 4 5 1 chunk +48 lines, -0 lines 2 comments Download
M chrome/browser/extensions/path_util.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/path_util.cc View 1 2 3 4 5 4 chunks +18 lines, -12 lines 3 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
gpdavis
Unfortunately, the Mac machine we have in the office is not set up for building, ...
6 years, 4 months ago (2014-08-04 23:15:24 UTC) #1
Devlin
are there no tests for the PrettifyPath function? Maybe we should add a few :)
6 years, 4 months ago (2014-08-04 23:30:08 UTC) #2
not at google - send to devlin
The functionality was added here: https://chromiumcodereview.appspot.com/10693089 which does include test, an API test, though curiously ...
6 years, 4 months ago (2014-08-04 23:39:07 UTC) #3
Devlin
On 2014/08/04 23:39:07, kalman wrote: > The functionality was added here: > > https://chromiumcodereview.appspot.com/10693089 > ...
6 years, 4 months ago (2014-08-04 23:50:33 UTC) #4
not at google - send to devlin
On 2014/08/04 23:50:33, Devlin wrote: > On 2014/08/04 23:39:07, kalman wrote: > > The functionality ...
6 years, 4 months ago (2014-08-04 23:55:36 UTC) #5
gpdavis
On 2014/08/04 23:55:36, kalman wrote: > On 2014/08/04 23:50:33, Devlin wrote: > > On 2014/08/04 ...
6 years, 4 months ago (2014-08-05 00:02:54 UTC) #6
not at google - send to devlin
yes that's the sort of thing I had in mind. what do you mean it ...
6 years, 4 months ago (2014-08-05 00:11:06 UTC) #7
Devlin
On 2014/08/05 00:02:54, gpdavis wrote: > On 2014/08/04 23:55:36, kalman wrote: > > On 2014/08/04 ...
6 years, 4 months ago (2014-08-05 00:15:04 UTC) #8
gpdavis
On 2014/08/04 23:55:36, kalman wrote: > I agree that at the very least we should ...
6 years, 4 months ago (2014-08-05 01:53:52 UTC) #9
gpdavis
Here's a test file with a couple of basic tests. When you say we should ...
6 years, 4 months ago (2014-08-05 20:41:10 UTC) #10
not at google - send to devlin
On 2014/08/05 20:41:10, gpdavis wrote: > Here's a test file with a couple of basic ...
6 years, 4 months ago (2014-08-05 20:42:41 UTC) #11
gpdavis
On 2014/08/05 20:42:41, kalman wrote: > On 2014/08/05 20:41:10, gpdavis wrote: > > Here's a ...
6 years, 4 months ago (2014-08-05 20:48:24 UTC) #12
Devlin
https://codereview.chromium.org/439873002/diff/60001/chrome/browser/extensions/extension_path_util_unittest.cc File chrome/browser/extensions/extension_path_util_unittest.cc (right): https://codereview.chromium.org/439873002/diff/60001/chrome/browser/extensions/extension_path_util_unittest.cc#newcode9 chrome/browser/extensions/extension_path_util_unittest.cc:9: #include "chrome/test/base/testing_profile.h" ?? https://codereview.chromium.org/439873002/diff/60001/chrome/browser/extensions/extension_path_util_unittest.cc#newcode17 chrome/browser/extensions/extension_path_util_unittest.cc:17: // For legacy reasons, ...
6 years, 4 months ago (2014-08-05 23:40:35 UTC) #13
gpdavis
https://codereview.chromium.org/439873002/diff/60001/chrome/browser/extensions/extension_path_util_unittest.cc File chrome/browser/extensions/extension_path_util_unittest.cc (right): https://codereview.chromium.org/439873002/diff/60001/chrome/browser/extensions/extension_path_util_unittest.cc#newcode9 chrome/browser/extensions/extension_path_util_unittest.cc:9: #include "chrome/test/base/testing_profile.h" On 2014/08/05 23:40:35, Devlin wrote: > ?? ...
6 years, 4 months ago (2014-08-06 18:37:26 UTC) #14
Devlin
https://codereview.chromium.org/439873002/diff/80001/chrome/browser/extensions/extension_path_util_unittest.cc File chrome/browser/extensions/extension_path_util_unittest.cc (right): https://codereview.chromium.org/439873002/diff/80001/chrome/browser/extensions/extension_path_util_unittest.cc#newcode21 chrome/browser/extensions/extension_path_util_unittest.cc:21: FilePath actual; "actual" is a bit misleading, since they ...
6 years, 4 months ago (2014-08-06 23:35:56 UTC) #15
gpdavis
https://codereview.chromium.org/439873002/diff/80001/chrome/browser/extensions/extension_path_util_unittest.cc File chrome/browser/extensions/extension_path_util_unittest.cc (right): https://codereview.chromium.org/439873002/diff/80001/chrome/browser/extensions/extension_path_util_unittest.cc#newcode21 chrome/browser/extensions/extension_path_util_unittest.cc:21: FilePath actual; On 2014/08/06 23:35:56, Devlin wrote: > "actual" ...
6 years, 4 months ago (2014-08-07 01:20:06 UTC) #16
Devlin
lg after these two small changes. https://codereview.chromium.org/439873002/diff/80002/chrome/browser/extensions/extension_path_util_unittest.cc File chrome/browser/extensions/extension_path_util_unittest.cc (right): https://codereview.chromium.org/439873002/diff/80002/chrome/browser/extensions/extension_path_util_unittest.cc#newcode20 chrome/browser/extensions/extension_path_util_unittest.cc:20: const FilePath::CharType kHomeShortcut[] ...
6 years, 4 months ago (2014-08-07 15:53:46 UTC) #17
gpdavis
https://codereview.chromium.org/439873002/diff/80002/chrome/browser/extensions/path_util.cc File chrome/browser/extensions/path_util.cc (right): https://codereview.chromium.org/439873002/diff/80002/chrome/browser/extensions/path_util.cc#newcode44 chrome/browser/extensions/path_util.cc:44: const base::FilePath::CharType kHomeShortcut[] = FILE_PATH_LITERAL("~"); On 2014/08/07 15:53:45, Devlin ...
6 years, 4 months ago (2014-08-07 18:19:22 UTC) #18
Devlin
https://codereview.chromium.org/439873002/diff/80002/chrome/browser/extensions/path_util.cc File chrome/browser/extensions/path_util.cc (right): https://codereview.chromium.org/439873002/diff/80002/chrome/browser/extensions/path_util.cc#newcode44 chrome/browser/extensions/path_util.cc:44: const base::FilePath::CharType kHomeShortcut[] = FILE_PATH_LITERAL("~"); On 2014/08/07 18:19:21, gpdavis ...
6 years, 4 months ago (2014-08-07 18:26:31 UTC) #19
Devlin
lgtm
6 years, 4 months ago (2014-08-07 18:26:48 UTC) #20
gpdavis
The CQ bit was checked by gpdavis.chromium@gmail.com
6 years, 4 months ago (2014-08-07 18:27:19 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gpdavis.chromium@gmail.com/439873002/80002
6 years, 4 months ago (2014-08-07 18:33:14 UTC) #22
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 01:03:55 UTC) #23
Message was sent while issue was closed.
Change committed as 288187

Powered by Google App Engine
This is Rietveld 408576698