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

Issue 1272823003: Update SplitString calls to new form (Closed)

Created:
5 years, 4 months ago by brettw
Modified:
5 years, 4 months ago
Reviewers:
sky, DaleCurtis
CC:
chromium-reviews, asanka, sadrul, yusukes+watch_chromium.org, tzik, posciak+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, dmazzoni+watch_chromium.org, tracing+reviews_chromium.org, kinuko+watch, jdduke+watch_chromium.org, jsbell+serviceworker_chromium.org, aboxhall+watch_chromium.org, chromoting-reviews_chromium.org, jam, nona+watch_chromium.org, je_julie, darin-cc_chromium.org, kalyank, tdresser+watch_chromium.org, ozone-reviews_chromium.org, blink-worker-reviews_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, extensions-reviews_chromium.org, yuzo+watch_chromium.org, feature-media-reviews_chromium.org, nhiroki, chromium-apps-reviews_chromium.org, piman+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-manifest_chromium.org, jochen+watch_chromium.org, michaeln, plundblad+watch_chromium.org, wfh+watch_chromium.org, serviceworker-reviews, nektar+watch_chromium.org, mcasas+watch_chromium.org, benjhayden+dwatch_chromium.org, kinuko+serviceworker, dtseng+watch_chromium.org, tfarina, mkwst+moarreviews-renderer_chromium.org, horo+watch_chromium.org, James Su, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update SplitString calls to new form Uses the new form for most (but not quite all) of the remaining users of the old form. Changes media mime util codec list parsing to expect no result from the string "," rather than two empty strings. The old SplitString call had a special case where if the input was empty, it would return empty, but if it had one split character, it would return two empty strings as results. The new one lets you choose but the options are either (1) empty string -> one empty string and "," -> two empty strings, or (2) map both to no results for when you don't want empty results. I'm pretty sure media codec parsing actually wants the latter behavior, so I updated the call to discard empty results and MimeUtilTest.ParseCodecString is updated. Committed: https://crrev.com/0aa7c64253cca8b636d52d1d01d94f96ab9c13fa Cr-Commit-Position: refs/heads/master@{#342238}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -272 lines) Patch
M ash/display/display_manager.cc View 1 1 chunk +3 lines, -5 lines 0 comments Download
M ash/test/display_manager_test_api.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M base/command_line.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M base/debug/proc_maps_linux.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M base/process/internal_linux.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M base/process/process_metrics_linux.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M base/test/launcher/test_launcher.cc View 3 chunks +13 lines, -7 lines 0 comments Download
M base/trace_event/trace_config.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_browsertest_base.cc View 1 chunk +3 lines, -6 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M content/browser/download/file_metadata_unittest_linux.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/download/save_package.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_browsertest.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_database.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M content/child/runtime_features.cc View 1 chunk +8 lines, -12 lines 0 comments Download
M content/common/gpu/media/jpeg_decode_accelerator_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 2 chunks +16 lines, -14 lines 0 comments Download
M content/common/gpu/media/video_encode_accelerator_unittest.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M content/common/pepper_plugin_list.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M content/common/plugin_list.cc View 1 2 chunks +11 lines, -7 lines 0 comments Download
M content/common/plugin_list_win.cc View 2 chunks +11 lines, -7 lines 0 comments Download
M content/public/browser/desktop_media_id.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/common/webplugininfo.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/manifest/manifest_parser.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/media/webrtc/stun_field_trial.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_helpers.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M extensions/browser/api/networking_private/networking_private_linux.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M extensions/common/csp_validator.cc View 1 2 chunks +4 lines, -8 lines 0 comments Download
M extensions/common/features/base_feature_provider.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M extensions/common/manifest.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M extensions/common/permissions/socket_permission_data.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M extensions/common/permissions/socket_permission_entry.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download
M extensions/common/url_pattern.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M google_apis/drive/test_util.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M google_apis/gaia/fake_gaia.cc View 2 chunks +8 lines, -12 lines 0 comments Download
M google_apis/gaia/gaia_auth_fetcher.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M google_apis/gaia/gaia_auth_util.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M gpu/config/gpu_control_list.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M gpu/config/gpu_info_collector.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/config/gpu_info_collector_android.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/config/gpu_info_collector_linux.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M gpu/config/gpu_test_expectations_parser.cc View 3 chunks +8 lines, -6 lines 0 comments Download
M gpu/config/gpu_util.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M media/base/mime_util.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M media/base/mime_util_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/filters/chunk_demuxer_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M media/filters/frame_processor_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M media/filters/source_buffer_stream_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M media/filters/video_cadence_estimator_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M media/formats/mp4/avc_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/formats/mp4/track_run_iterator_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/renderers/video_renderer_impl_unittest.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M remoting/protocol/negotiating_host_authenticator.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M ui/aura/bench/bench_main.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/ime/input_method_auralinux_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/events/devices/x11/touch_factory_x11.cc View 1 chunk +6 lines, -7 lines 0 comments Download
M ui/events/ozone/evdev/event_device_test_util.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/font_fallback_win.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M ui/gfx/font_list.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/gl/gl_gl_api_implementation.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/gl/gl_implementation.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/controls/label.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 28 (12 generated)
brettw
5 years, 4 months ago (2015-08-05 22:27:31 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272823003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272823003/20001
5 years, 4 months ago (2015-08-05 22:28:07 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/81778)
5 years, 4 months ago (2015-08-05 22:53:24 UTC) #6
sky
Ugh, that was painful. LGTM
5 years, 4 months ago (2015-08-05 23:19:30 UTC) #7
brettw
Dale: please review media/base/mime_util_unittest.cc and the description I put of that change in the CL ...
5 years, 4 months ago (2015-08-06 17:04:35 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272823003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272823003/40001
5 years, 4 months ago (2015-08-06 17:05:25 UTC) #11
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_10.10_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_10.10_rel_ng/builds/2709) mac_chromium_compile_dbg_ng on ...
5 years, 4 months ago (2015-08-06 17:07:50 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/1272823003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272823003/60001
5 years, 4 months ago (2015-08-06 17:37:16 UTC) #15
DaleCurtis
media/ lgtm -- isTypeSupported/canPlayType are already obtuse enough, so this is fine.
5 years, 4 months ago (2015-08-06 18:07:07 UTC) #16
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/87473)
5 years, 4 months ago (2015-08-06 18:21:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272823003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272823003/80001
5 years, 4 months ago (2015-08-06 19:31:49 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/52893)
5 years, 4 months ago (2015-08-06 20:34:05 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1272823003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1272823003/80001
5 years, 4 months ago (2015-08-06 21:58:50 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 4 months ago (2015-08-07 00:11:35 UTC) #26
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/0aa7c64253cca8b636d52d1d01d94f96ab9c13fa Cr-Commit-Position: refs/heads/master@{#342238}
5 years, 4 months ago (2015-08-07 00:12:22 UTC) #27
Peter Kasting
5 years, 4 months ago (2015-08-07 01:26:16 UTC) #28
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/1278973003/ by pkasting@chromium.org.

The reason for reverting is: Caused Blink layout test failures in
media/encrypted-media/encrypted-media-requestmediakeysystemaccess.html :

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpec....

Powered by Google App Engine
This is Rietveld 408576698