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

Issue 1686263008: Add utility method for WebString to base::FilePath conversion (Closed)

Created:
4 years, 10 months ago by kinuko
Modified:
4 years, 10 months ago
Reviewers:
esprehn, Nico
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dcheng, dglazkov+blink, jam, jochen+watch_chromium.org, kinuko+fileapi, kinuko+watch, mkwst+moarreviews-renderer_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, nasko+codewatch_chromium.org, nhiroki, Peter Beverloo, tzik, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add utility method for WebString to base::FilePath conversion Converting WebString to base::FilePath used to go through string16, but - FilePath can take UTF8 depending on platforms (e.g. on posix), and - We can use StringPiece to avoid extra string copy when possible BUG=n/a Committed: https://crrev.com/b473f003f012766b87c4a14672f924ea7cffaea5 Cr-Commit-Position: refs/heads/master@{#376688}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : added test #

Patch Set 4 : directly convert latin1 -> wide on windows #

Patch Set 5 : #

Patch Set 6 : rebase! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -43 lines) Patch
M base/files/file_path.h View 1 chunk +2 lines, -2 lines 0 comments Download
M base/files/file_path.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M content/child/simple_webmimeregistry_impl.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M content/child/web_url_request_util.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/child/webblobregistry_impl.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/child/webfileutilities_impl.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/drop_data_builder.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/pepper/url_response_info_util.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 3 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/test/weburl_loader_mock_factory.cc View 2 chunks +2 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/blink_platform_tests.gyp View 1 2 chunks +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/platform/exported/FilePathConversion.cpp View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/exported/FilePathConversionTest.cpp View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A + third_party/WebKit/public/platform/FilePathConversion.h View 1 chunk +7 lines, -5 lines 0 comments Download

Messages

Total messages: 63 (34 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686263008/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686263008/1
4 years, 10 months ago (2016-02-12 11:19:20 UTC) #2
commit-bot: I haz the power
Dry run: 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/115334)
4 years, 10 months ago (2016-02-12 11:47:42 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686263008/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686263008/20001
4 years, 10 months ago (2016-02-14 07:16:16 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/181020)
4 years, 10 months ago (2016-02-14 07:54:32 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686263008/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686263008/40001
4 years, 10 months ago (2016-02-14 12:51:56 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-14 14:36:25 UTC) #14
kinuko
esprehn: blink changes thakis: base/ changes Could you review? Something similar to URLConversion brettw did ...
4 years, 10 months ago (2016-02-15 15:43:38 UTC) #17
Nico
base/ lgtm. Below I'm convincing myself that this is always better than the old code, ...
4 years, 10 months ago (2016-02-15 16:45:14 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686263008/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686263008/60001
4 years, 10 months ago (2016-02-17 14:18:35 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/131934) ios_rel_device_ninja on ...
4 years, 10 months ago (2016-02-17 14:21:29 UTC) #22
esprehn
This lgtm, but all your bots went red?
4 years, 10 months ago (2016-02-18 02:31:34 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686263008/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686263008/80001
4 years, 10 months ago (2016-02-18 07:49:58 UTC) #25
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/147143)
4 years, 10 months ago (2016-02-18 08:39:33 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686263008/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686263008/100001
4 years, 10 months ago (2016-02-18 08:53:28 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/147159)
4 years, 10 months ago (2016-02-18 10:00:32 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686263008/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686263008/120001
4 years, 10 months ago (2016-02-18 11:00:08 UTC) #33
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/147199)
4 years, 10 months ago (2016-02-18 11:39:20 UTC) #35
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686263008/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686263008/140001
4 years, 10 months ago (2016-02-18 12:16:46 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/169932)
4 years, 10 months ago (2016-02-18 12:57:55 UTC) #41
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686263008/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686263008/160001
4 years, 10 months ago (2016-02-20 08:25:37 UTC) #44
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/148475)
4 years, 10 months ago (2016-02-20 10:49:41 UTC) #46
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686263008/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686263008/160001
4 years, 10 months ago (2016-02-20 20:30:08 UTC) #48
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/148517)
4 years, 10 months ago (2016-02-20 22:45:09 UTC) #50
kinuko
Added test & partially reverted the code for latin1 on Windows / non-posix as it ...
4 years, 10 months ago (2016-02-21 22:55:20 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686263008/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686263008/160001
4 years, 10 months ago (2016-02-21 22:55:55 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/133949) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 10 months ago (2016-02-21 22:58:41 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1686263008/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1686263008/180001
4 years, 10 months ago (2016-02-22 03:43:55 UTC) #59
commit-bot: I haz the power
Committed patchset #6 (id:180001)
4 years, 10 months ago (2016-02-22 05:23:28 UTC) #61
commit-bot: I haz the power
4 years, 10 months ago (2016-02-22 05:24:22 UTC) #63
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b473f003f012766b87c4a14672f924ea7cffaea5
Cr-Commit-Position: refs/heads/master@{#376688}

Powered by Google App Engine
This is Rietveld 408576698